]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit340d03e2201ef44a4bf20009df26e800fe7158b2
tree4d32c8ce1aa9fe73dc269129a4a4c3b5626e90f0
parentfd2556efe894ab459f7579ecfe3388acb90a5a61
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