diff options
author | Giridhar Malavali <giridhar.malavali@qlogic.com> | 2010-05-28 18:08:18 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-07-27 13:01:20 -0400 |
commit | 083a469db4ecf3b286a96b5b722c37fc1affe0be (patch) | |
tree | aa9aef39e8933b5cc75e3af5a5d63352bb7e2776 /drivers/scsi/qla2xxx/qla_def.h | |
parent | 7e2b895b93db603ac3462175baa846ebf1be44da (diff) |
[SCSI] qla2xxx: Correct use-after-free oops seen during EH-abort.
Hold a reference to the srb (sp) while aborting an I/O -- as the
I/O can/will complete from within the interrupt-context.
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_def.h')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_def.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h index 839610909018..f8239bff0924 100644 --- a/drivers/scsi/qla2xxx/qla_def.h +++ b/drivers/scsi/qla2xxx/qla_def.h | |||
@@ -202,6 +202,7 @@ struct sd_dif_tuple { | |||
202 | * SCSI Request Block | 202 | * SCSI Request Block |
203 | */ | 203 | */ |
204 | typedef struct srb { | 204 | typedef struct srb { |
205 | atomic_t ref_count; | ||
205 | struct fc_port *fcport; | 206 | struct fc_port *fcport; |
206 | uint32_t handle; | 207 | uint32_t handle; |
207 | 208 | ||