Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

qla4xxx: fix get_host_stats error propagation

qla4xxx was not always returning -EXYZ error codes when
qla4xxx_get_host_stats failed.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Acked-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>

authored by

Mike Christie and committed by
Christoph Hellwig
7f3976f0 a5c277ec

+2
+2
drivers/scsi/qla4xxx/ql4_os.c
··· 1050 1050 if (!ql_iscsi_stats) { 1051 1051 ql4_printk(KERN_ERR, ha, 1052 1052 "Unable to allocate memory for iscsi stats\n"); 1053 + ret = -ENOMEM; 1053 1054 goto exit_host_stats; 1054 1055 } 1055 1056 ··· 1059 1058 if (ret != QLA_SUCCESS) { 1060 1059 ql4_printk(KERN_ERR, ha, 1061 1060 "Unable to retrieve iscsi stats\n"); 1061 + ret = -EIO; 1062 1062 goto exit_host_stats; 1063 1063 } 1064 1064 host_stats->mactx_frames = le64_to_cpu(ql_iscsi_stats->mac_tx_frames);