[SCSI] fnic: Kernel panic due to FIP mode misconfiguration
authorHiral Patel <hiralpat@cisco.com>
Tue, 26 Feb 2013 00:18:37 +0000 (16:18 -0800)
committerJames Bottomley <JBottomley@Parallels.com>
Thu, 2 May 2013 14:32:23 +0000 (07:32 -0700)
commitd7fadce335fa4d38868f331c9265b139e797986f
treee5364789597ff17300cb7f3f41e4bdde353eaa0a
parentd3c995f1dcf938f1084388d92b8fb97bec366566
[SCSI] fnic: Kernel panic due to FIP mode misconfiguration

If switch configured in FIP and adapter configured in non-fip mode, driver
panics while queueing FIP frame in non-existing fip_frame_queue. Added config
check before queueing FIP frame in misconfiguration case to avoid kernel panic.

Signed-off-by: Hiral Patel <hiralpat@cisco.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/fnic/fnic_fcs.c