Files
linux/drivers
Tomas Henzl 2e4ce49881 SCSI: hpsa: fix a race in cmd_free/scsi_done
commit 2cc5bfaf85 upstream.

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>
Cc: Masoud Sharbiani <msharbiani@twitter.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-11-21 09:22:55 -08:00
..
2013-12-08 07:29:25 -08:00
2014-11-21 09:22:52 -08:00
2014-03-06 21:30:14 -08:00
2014-11-14 08:48:01 -08:00
2014-04-14 06:42:18 -07:00
2014-11-21 09:22:55 -08:00
2014-02-20 11:06:11 -08:00
2014-04-03 12:01:05 -07:00
2014-11-14 08:47:56 -08:00