[SCSI] qla4xxx: Fix smatch warnings
authorAdheer Chandravanshi <adheer.chandravanshi@qlogic.com>
Wed, 17 Apr 2013 09:15:28 +0000 (05:15 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Thu, 2 May 2013 19:27:33 +0000 (12:27 -0700)
commit1bcb56190353f12aa99e455658760d25b07e4646
tree88952c1942db740ad61ac9fc804aeb96212d5588
parent28e02f1ad838fdf7eebea69c9fc752cd164910da
[SCSI] qla4xxx: Fix smatch warnings

Fix following smatch warnings:-
drivers/scsi/qla4xxx/ql4_os.c:6573
qla4xxx_sysfs_ddb_set_param() warn: possible memory leak of 'fw_ddb_entry'
drivers/scsi/qla4xxx/ql4_os.c:6596
qla4xxx_sysfs_ddb_delete() warn: variable dereferenced before check 'fnode_sess'
(see line 6584)
drivers/scsi/qla4xxx/ql4_os.c:6632
qla4xxx_sysfs_ddb_delete() error: potential NULL dereference 'fw_ddb_entry'.

Signed-off-by: Adheer Chandravanshi <adheer.chandravanshi@qlogic.com>
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/qla4xxx/ql4_os.c