summaryrefslogtreecommitdiff
path: root/fs/f2fs/segment.c
diff options
context:
space:
mode:
authorHuai-Yuan Liu <qq810974084@gmail.com>2024-04-12 16:38:40 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-06-16 13:23:33 +0200
commit65cd017d43f4319a56747d38308b0a24cf57299e (patch)
treef264da332ca345e46500edb3f9359ac1f7bc01cc /fs/f2fs/segment.c
parent1e4805ba1b7800f2acfdd0b2e6588e4b64d6c493 (diff)
ppdev: Add an error check in register_device
[ Upstream commit fbf740aeb86a4fe82ad158d26d711f2f3be79b3e ] In register_device, the return value of ida_simple_get is unchecked, in witch ida_simple_get will use an invalid index value. To address this issue, index should be checked after ida_simple_get. When the index value is abnormal, a warning message should be printed, the port should be dropped, and the value should be recorded. Fixes: 9a69645dde11 ("ppdev: fix registering same device name") Signed-off-by: Huai-Yuan Liu <qq810974084@gmail.com> Link: https://lore.kernel.org/r/20240412083840.234085-1-qq810974084@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/f2fs/segment.c')
0 files changed, 0 insertions, 0 deletions