USB: isight: fix kernel bug when loading firmware
authorGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Dec 2011 22:02:59 +0000 (14:02 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 12 Jan 2012 19:33:26 +0000 (11:33 -0800)
commitb0720be23713f8d56f15e5e1a08fb9871b974d1c
tree469dfb846c115c731d6cd3c47b8c892d39745494
parent85df277cc31f334ba552899d60ca78f9d35702e1
USB: isight: fix kernel bug when loading firmware

commit 59bf5cf94f0fa3b08fb1258b52649077b7d0914d upstream.

We were sending data on the stack when uploading firmware, which causes
some machines fits, and is not allowed.  Fix this by using the buffer we
already had around for this very purpose.

Reported-by: Wouter M. Koolen <wmkoolen@cwi.nl>
Tested-by: Wouter M. Koolen <wmkoolen@cwi.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/misc/isight_firmware.c