summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa/bfa_fcs.h
diff options
context:
space:
mode:
authorVijaya Mohan Guvva2013-11-21 10:37:49 +0100
committerJames Bottomley2013-12-03 15:56:49 +0100
commit22a08538dca5c0630226f1c0c58dccd12e463d22 (patch)
tree236bf0a60c617996b46abb615045d71d01a4328a /drivers/scsi/bfa/bfa_fcs.h
parent[SCSI] enclosure: fix WARN_ON in dual path device removing (diff)
downloadkernel-qcow2-linux-22a08538dca5c0630226f1c0c58dccd12e463d22.tar.gz
kernel-qcow2-linux-22a08538dca5c0630226f1c0c58dccd12e463d22.tar.xz
kernel-qcow2-linux-22a08538dca5c0630226f1c0c58dccd12e463d22.zip
[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>
Diffstat (limited to 'drivers/scsi/bfa/bfa_fcs.h')
-rw-r--r--drivers/scsi/bfa/bfa_fcs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/bfa/bfa_fcs.h b/drivers/scsi/bfa/bfa_fcs.h
index 94d5d0102f7d..42bcb970445a 100644
--- a/drivers/scsi/bfa/bfa_fcs.h
+++ b/drivers/scsi/bfa/bfa_fcs.h
@@ -296,6 +296,7 @@ wwn_t bfa_fcs_lport_get_rport(struct bfa_fcs_lport_s *port, wwn_t wwn,
struct bfa_fcs_lport_s *bfa_fcs_lookup_port(struct bfa_fcs_s *fcs,
u16 vf_id, wwn_t lpwwn);
+void bfa_fcs_lport_set_symname(struct bfa_fcs_lport_s *port, char *symname);
void bfa_fcs_lport_get_info(struct bfa_fcs_lport_s *port,
struct bfa_lport_info_s *port_info);
void bfa_fcs_lport_get_attr(struct bfa_fcs_lport_s *port,