Commit 9f17b21a authored by Zhong Jinghua's avatar Zhong Jinghua Committed by Li Lingfeng
Browse files

scsi: scsi_device_gets returns failure when the module is NULL.

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


CVE: NA

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

when module is NULL, try_module_get return true.
But it would be better to return failure in scsi_device_get.

Signed-off-by: default avatarZhong Jinghua <zhongjinghua@huawei.com>
Signed-off-by: default avatarLi Lingfeng <lilingfeng3@huawei.com>
parent 8c17b6e2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment