]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
um: ubd: Add missing error check in start_io_thread()
authorTiwei Bie <tiwei.btw@antgroup.com>
Fri, 6 Jun 2025 12:44:25 +0000 (20:44 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 6 Jul 2025 08:58:00 +0000 (10:58 +0200)
commit549dc3917973e16c12fd683a58a19e8bd3f68db5
tree2f3195f2201715af3f522f3bdb186163d819aa5a
parent88c0831d6863a7e5398e156c6325329609194844
um: ubd: Add missing error check in start_io_thread()

[ Upstream commit c55c7a85e02a7bfee20a3ffebdff7cbeb41613ef ]

The subsequent call to os_set_fd_block() overwrites the previous
return value. OR the two return values together to fix it.

Fixes: f88f0bdfc32f ("um: UBD Improvements")
Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com>
Link: https://patch.msgid.link/20250606124428.148164-2-tiwei.btw@antgroup.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/um/drivers/ubd_user.c