USB: fix uninitialised variable in ti_do_download

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Monday, July 13, 2009 - 11:59 am

Gitweb:     http://git.kernel.org/linus/87ea8c887905d8b13ae90b537117592ed027632a
Commit:     87ea8c887905d8b13ae90b537117592ed027632a
Parent:     71f9f6cc9eef47fddc05f34b3d32677ab2e0f1fa
Author:     Oliver Neukum <oliver@neukum.org>
AuthorDate: Tue Jun 30 09:44:24 2009 +0200
Committer:  Greg Kroah-Hartman <gregkh@suse.de>
CommitDate: Sun Jul 12 15:16:38 2009 -0700

    USB: fix uninitialised variable in ti_do_download
    
    Signed-off-by: Oliver Neukum <oliver@neukum.org>
    Cc: stable <stable@kernel.org>
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
 drivers/usb/serial/ti_usb_3410_5052.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/serial/ti_usb_3410_5052.c b/drivers/usb/serial/ti_usb_3410_5052.c
index 35d8852..14971a9 100644
--- a/drivers/usb/serial/ti_usb_3410_5052.c
+++ b/drivers/usb/serial/ti_usb_3410_5052.c
@@ -1657,7 +1657,7 @@ static int ti_do_download(struct usb_device *dev, int pipe,
 	u8 cs = 0;
 	int done;
 	struct ti_firmware_header *header;
-	int status;
+	int status = 0;
 	int len;
 
 	for (pos = sizeof(struct ti_firmware_header); pos < size; pos++)
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
USB: fix uninitialised variable in ti_do_download, Linux Kernel Mailing ..., (Mon Jul 13, 11:59 am)