Commit 570a8ed8 authored by Zhong Jinghua's avatar Zhong Jinghua Committed by openeuler-sync-bot
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>
(cherry picked from commit 9f17b21a)
parent b7625451
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment