scsi: csiostor: fix NULL pointer dereference in csio_vport_set_state()
authorVarun Prakash <varun@chelsio.com>
Sat, 12 Jan 2019 16:44:30 +0000 (22:14 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 23 Jan 2019 01:40:59 +0000 (20:40 -0500)
commitfe35a40e675473eb65f2f5462b82770f324b5689
tree73e5b565b42ab4004802364cd225bd1f6e17903d
parentc41f59884be5cca293ed61f3d64637dbba3a6381
scsi: csiostor: fix NULL pointer dereference in csio_vport_set_state()

Assign fc_vport to ln->fc_vport before calling csio_fcoe_alloc_vnp() to
avoid a NULL pointer dereference in csio_vport_set_state().

ln->fc_vport is dereferenced in csio_vport_set_state().

Signed-off-by: Varun Prakash <varun@chelsio.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/csiostor/csio_attr.c