From: Hans de Goede Date: Thu, 14 Nov 2013 10:06:13 +0000 (+0100) Subject: uas: Clear cmdinfo on command queue-ing X-Git-Tag: v3.15-rc1~137^2~26^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a4462e0e2fe8f715f54147d36b5433a7ff5a85a;p=pandora-kernel.git uas: Clear cmdinfo on command queue-ing The scsi error handling path re-uses previously queued up (and errored-out) cmds. If such a re-used cmd had a data-phase then cmdinfo will have data_in_urb / data_out_urb still set to the free-ed urbs from the errored-out cmd, and they will get free-ed a second time when the error handling cmd completes, corrupting the kernel heap. Clearing cmdinfo on command queue-ing fixes this, and seems like a good idea in general. Signed-off-by: Hans de Goede Signed-off-by: Sarah Sharp --- Reading git-diff-tree failed