diff options
author | Tomas Henzl <thenzl@redhat.com> | 2013-08-01 15:14:00 +0200 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2014-12-14 16:24:01 +0000 |
commit | e87cf8149d14c01a665e65029ad76530b228e901 (patch) | |
tree | d52fc8c1cb60d9f7d2a7ac29a1fc9e28bf5bcb47 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 69cff65c8e35c2dc8763249e758ff55538809d27 (diff) |
hpsa: fix a race in cmd_free/scsi_done
commit 2cc5bfaf854463d9d1aa52091f60110fbf102a96 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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Cc: Masoud Sharbiani <msharbiani@twopensource.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions