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>
This commit is contained in:
Oliver Neukum 2009-06-30 09:44:24 +02:00 committed by Greg Kroah-Hartman
parent 71f9f6cc9e
commit 87ea8c8879

View file

@ -1657,7 +1657,7 @@ static int ti_do_download(struct usb_device *dev, int pipe,
u8 cs = 0; u8 cs = 0;
int done; int done;
struct ti_firmware_header *header; struct ti_firmware_header *header;
int status; int status = 0;
int len; int len;
for (pos = sizeof(struct ti_firmware_header); pos < size; pos++) for (pos = sizeof(struct ti_firmware_header); pos < size; pos++)