]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
block: rsxx: fix error return code of rsxx_pci_probe()
authorJia-Ju Bai <baijiaju1990@gmail.com>
Wed, 10 Mar 2021 03:30:17 +0000 (19:30 -0800)
committerSeth Forshee <seth.forshee@canonical.com>
Wed, 17 Mar 2021 18:48:59 +0000 (13:48 -0500)
commitbbd6ec74e55232f3a57ce5d9e026b5cd9ce77de8
tree0a5892f011d89dea3f9e463d477fbbd525238eb7
parenta7f9e02f7d7f80ccf70307772014a2ddfe6c82c6
block: rsxx: fix error return code of rsxx_pci_probe()

BugLink: https://bugs.launchpad.net/bugs/1919492
[ Upstream commit df66617bfe87487190a60783d26175b65d2502ce ]

When create_singlethread_workqueue returns NULL to card->event_wq, no
error return code of rsxx_pci_probe() is assigned.

To fix this bug, st is assigned with -ENOMEM in this case.

Fixes: 8722ff8cdbfa ("block: IBM RamSan 70/80 device driver")
Reported-by: TOTE Robot <oslab@tsinghua.edu.cn>
Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Link: https://lore.kernel.org/r/20210310033017.4023-1-baijiaju1990@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/block/rsxx/core.c