Commit eebf2b98 authored by Zhong Jinghua's avatar Zhong Jinghua Committed by Yongqiang Liu
Browse files

scsi: scsi_device_gets returns failure when the module is NULL.

hulk inclusion
category: bugfix
bugzilla: 189103, 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>
Reviewed-by: default avatarYu Kuai <yukuai3@huawei.com>
Signed-off-by: default avatarYongqiang Liu <liuyongqiang13@huawei.com>
parent 1284a1fc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment