diff options
author | Tomas Henzl <thenzl@redhat.com> | 2013-08-01 13:14:00 (GMT) |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-08-26 08:51:31 (GMT) |
commit | 2cc5bfaf854463d9d1aa52091f60110fbf102a96 (patch) | |
tree | a506db6460685149054a2995770ba5b916bac2fa /drivers/bluetooth/btmrvl_sdio.h | |
parent | 80aebef7c112ca2610ba8aa6cd8cb02f3828e366 (diff) | |
download | linux-fsl-qoriq-2cc5bfaf854463d9d1aa52091f60110fbf102a96.tar.xz |
[SCSI] hpsa: fix a race in cmd_free/scsi_done
When the driver calls scsi_done and after that frees it's internal
preallocated memory it can happen that a new job is enqueud before
the memory is freed. The allocation fails and the message
"cmd_alloc returned NULL" is shown.
Patch below fixes it by moving cmd->scsi_done after cmd_free.
Signed-off-by: Tomas Henzl <thenzl@redhat.com>
Acked-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/bluetooth/btmrvl_sdio.h')
0 files changed, 0 insertions, 0 deletions