[SCSI] bfa: Fix crash when symb name set for offline vport
authorVijaya Mohan Guvva <vmohan@brocade.com>
Thu, 21 Nov 2013 09:37:49 +0000 (01:37 -0800)
committerJames Bottomley <JBottomley@Parallels.com>
Tue, 3 Dec 2013 14:56:49 +0000 (06:56 -0800)
commit22a08538dca5c0630226f1c0c58dccd12e463d22
tree236bf0a60c617996b46abb615045d71d01a4328a
parenta1470c7bf3a4676e62e4c0fb204e339399eb5c59
[SCSI] bfa: Fix crash when symb name set for offline vport

This patch fixes a crash when tried setting symbolic name for an offline
vport through sysfs. Crash is due to uninitialized pointer lport->ns,
which gets initialized only on linkup (port online).

Signed-off-by: Vijaya Mohan Guvva <vmohan@brocade.com>
Cc: stable@vger.kernel.org
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/bfa/bfa_fcs.h
drivers/scsi/bfa/bfa_fcs_lport.c
drivers/scsi/bfa/bfad_attr.c