Commit 7826810f authored by Li Lingfeng's avatar Li Lingfeng
Browse files

scsi: don't fail if hostt->module is NULL

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7YWV4


CVE: NA

--------------------------------

If CONFIG_SCSI_VIRTIO is set as "y", sdev->host->hostt->module will be
NULL, which means scsi device can't be probed normally.

Fix the problem by adding a member in struct Scsi_Host to record whether
the module is builtin.

Fixes: 3f4659e76aa3 ("[Huawei] scsi: scsi_device_gets returns failure when the module is NULL.")
Signed-off-by: default avatarLi Lingfeng <lilingfeng3@huawei.com>
parent 9f17b21a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment