File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1909,6 +1909,8 @@ qla2x00_reset_host_stats(struct Scsi_Host *shost)
1909
1909
vha -> qla_stats .jiffies_at_last_reset = get_jiffies_64 ();
1910
1910
1911
1911
if (IS_FWI2_CAPABLE (ha )) {
1912
+ int rval ;
1913
+
1912
1914
stats = dma_alloc_coherent (& ha -> pdev -> dev ,
1913
1915
sizeof (* stats ), & stats_dma , GFP_KERNEL );
1914
1916
if (!stats ) {
@@ -1918,7 +1920,11 @@ qla2x00_reset_host_stats(struct Scsi_Host *shost)
1918
1920
}
1919
1921
1920
1922
/* reset firmware statistics */
1921
- qla24xx_get_isp_stats (base_vha , stats , stats_dma , BIT_0 );
1923
+ rval = qla24xx_get_isp_stats (base_vha , stats , stats_dma , BIT_0 );
1924
+ if (rval != QLA_SUCCESS )
1925
+ ql_log (ql_log_warn , vha , 0x70de ,
1926
+ "Resetting ISP statistics failed: rval = %d\n" ,
1927
+ rval );
1922
1928
1923
1929
dma_free_coherent (& ha -> pdev -> dev , sizeof (* stats ),
1924
1930
stats , stats_dma );
You can’t perform that action at this time.
0 commit comments