scsi: fix failing unload of a LLDD module
euler inclusion category: bugfix bugzilla: 8990 CVE: NA --------------------------- This reverts part of commit cff549e4 ("scsi: proper state checking and module refcount handling in scsi_device_get"). scsi_device_get() will fail in a module exit route, thus device can't be removed. Turn try_module_get() into __module_get() to make sure scsi device will be removed normally. Signed-off-by: NWei Fang <fangwei1@huawei.com> Signed-off-by: NHanjun Guo <guohanjun@huawei.com> [yan: cherry-picked from kernel-4.1 f94b5b901110] Signed-off-by: NJason Yan <yanaijie@huawei.com> Reviewed-by: Nzhengbin <zhengbin13@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录