forked from luck/tmp_suning_uos_patched
e73c864ba3
If AHD_DEBUG is enabled and ahd_platform_alloc fails then ahd is set to null and the debug printk dereferences ahd when passing it to ahd_name. Fix this by moving the debug printk to before the call to ahd_platform_alloc where ahd is not null at that point. Detected by CoverityScan, CID#100296 ("Explicit null dereference") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> |
||
---|---|---|
.. | ||
aicasm | ||
.gitignore | ||
aic7xxx_93cx6.c | ||
aic7xxx_93cx6.h | ||
aic7xxx_core.c | ||
aic7xxx_inline.h | ||
aic7xxx_osm_pci.c | ||
aic7xxx_osm.c | ||
aic7xxx_osm.h | ||
aic7xxx_pci.c | ||
aic7xxx_pci.h | ||
aic7xxx_proc.c | ||
aic7xxx_reg_print.c_shipped | ||
aic7xxx_reg.h_shipped | ||
aic7xxx_seq.h_shipped | ||
aic7xxx.h | ||
aic7xxx.reg | ||
aic7xxx.seq | ||
aic79xx_core.c | ||
aic79xx_inline.h | ||
aic79xx_osm_pci.c | ||
aic79xx_osm.c | ||
aic79xx_osm.h | ||
aic79xx_pci.c | ||
aic79xx_pci.h | ||
aic79xx_proc.c | ||
aic79xx_reg_print.c_shipped | ||
aic79xx_reg.h_shipped | ||
aic79xx_seq.h_shipped | ||
aic79xx.h | ||
aic79xx.reg | ||
aic79xx.seq | ||
aic7770_osm.c | ||
aic7770.c | ||
aiclib.h | ||
cam.h | ||
Kconfig.aic7xxx | ||
Kconfig.aic79xx | ||
Makefile | ||
queue.h | ||
scsi_iu.h | ||
scsi_message.h |