summaryrefslogtreecommitdiffstats
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2013-11-14 11:06:13 +0100
committerSarah Sharp <sarah.a.sharp@linux.intel.com>2014-03-04 15:38:24 -0800
commit3a4462e0e2fe8f715f54147d36b5433a7ff5a85a (patch)
tree13643efc4a15e11299dd0e83eca09511d85aced6 /lib/mpi/mpiutil.c
parent21fc05b680f6fba868b41e2713ade3fdea4049f9 (diff)
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 <hdegoede@redhat.com> Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions