]> 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)
commit4905406add0a746d81cfcd8d5b9e1f78dd3f5b4a
tree4d32c8ce1aa9fe73dc269129a4a4c3b5626e90f0
parent2d343fd7cb05639124b61a814e52deef0f9b8a24
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