Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 87ea8c88 authored by Oliver Neukum's avatar Oliver Neukum Committed by Greg Kroah-Hartman
Browse files

USB: fix uninitialised variable in ti_do_download



Signed-off-by: default avatarOliver Neukum <oliver@neukum.org>
Cc: stable <stable@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 71f9f6cc
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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++)