]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
block: rnbd-clt: Fix leaked ID in init_dev()
authorThomas Fourier <fourier.thomas@gmail.com>
Wed, 17 Dec 2025 09:36:48 +0000 (10:36 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 18 Dec 2025 15:10:28 +0000 (08:10 -0700)
commitc9b5645fd8ca10f310e41b07540f98e6a9720f40
tree0830657905731cafd84925a2f532cb1444e1677d
parentc258f5c4502c9667bccf5d76fa731ab9c96687c1
block: rnbd-clt: Fix leaked ID in init_dev()

If kstrdup() fails in init_dev(), then the newly allocated ID is lost.

Fixes: 64e8a6ece1a5 ("block/rnbd-clt: Dynamically alloc buffer for pathname & blk_symlink_name")
Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
Acked-by: Jack Wang <jinpu.wang@ionos.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/rnbd/rnbd-clt.c