]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit05358cc2fff2c8d2e8fff201af65ab3a9082ad2b
tree73e5b565b42ab4004802364cd225bd1f6e17903d
parent777b4e202542946a7289fac3e951ee3f355f2bfe
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