Fnic: Fnic Driver crashed with NULL pointer reference
authorHiral Shah <hishah@cisco.com>
Mon, 10 Nov 2014 20:54:36 +0000 (12:54 -0800)
committerChristoph Hellwig <hch@lst.de>
Thu, 20 Nov 2014 08:11:00 +0000 (09:11 +0100)
commit41df7b02db82cf6c14f094757bac3830d10a827f
tree4d32c8ce1aa9fe73dc269129a4a4c3b5626e90f0
parent0ee7b8714dca511a68826a300cc4966f2e83a6c3
Fnic: Fnic Driver crashed with NULL pointer reference

When issuing I/O request, if the I/O completes before returning from
fnic_queuecommand(), we may be referencing scsi_cmnd structure that may
be freed by interrupt handler. Acquring IO lock would synchronize
fnic_queuecommand and interrupt handler.

- Increment fnic version from 1.6.0.15 to 1.6.0.16

Signed-off-by: Hiral Shah <hishah@cisco.com>
Signed-off-by: Sesidhar Baddela <sebaddel@cisco.com>
Signed-off-by: Anil Chintalapati <achintal@cisco.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/fnic/fnic.h
drivers/scsi/fnic/fnic_scsi.c