“6e8ac724bf45d116195d57fbe3a949f570c35635”上不存在“arch/git@gitcode.net:openanolis/cloud-kernel.git”
提交 9975ec9d 编写于 作者: D Don Brace 提交者: Martin K. Petersen

hpsa: check for null arguments to dev_printk

Check for NULLs.
Reviewed-by: NTomas Henzl <thenzl@redhat.com>
Reviewed-by: NManoj Kumar <manoj@linux.vnet.ibm.com>
Signed-off-by: NDon Brace <don.brace@pmcs.com>
Reviewed-by: NHannes Reinecke <hare@suse.de>
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
上级 3ad7de6b
...@@ -1138,6 +1138,9 @@ static int hpsa_find_target_lun(struct ctlr_info *h, ...@@ -1138,6 +1138,9 @@ static int hpsa_find_target_lun(struct ctlr_info *h,
static inline void hpsa_show_dev_msg(const char *level, struct ctlr_info *h, static inline void hpsa_show_dev_msg(const char *level, struct ctlr_info *h,
struct hpsa_scsi_dev_t *dev, char *description) struct hpsa_scsi_dev_t *dev, char *description)
{ {
if (h == NULL || h->pdev == NULL || h->scsi_host == NULL)
return;
dev_printk(level, &h->pdev->dev, dev_printk(level, &h->pdev->dev,
"scsi %d:%d:%d:%d: %s %s %.8s %.16s RAID-%s SSDSmartPathCap%c En%c Exp=%d\n", "scsi %d:%d:%d:%d: %s %s %.8s %.16s RAID-%s SSDSmartPathCap%c En%c Exp=%d\n",
h->scsi_host->host_no, dev->bus, dev->target, dev->lun, h->scsi_host->host_no, dev->bus, dev->target, dev->lun,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部