Commit c9b5645
block: rnbd-clt: Fix leaked ID in init_dev()
If kstrdup() fails in init_dev(), then the newly allocated ID is lost.
Fixes: 64e8a6e ("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>1 parent c258f5c commit c9b5645
1 file changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1423 | 1423 | | |
1424 | 1424 | | |
1425 | 1425 | | |
1426 | | - | |
1427 | | - | |
1428 | | - | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
1429 | 1431 | | |
1430 | 1432 | | |
1431 | 1433 | | |
| |||
1434 | 1436 | | |
1435 | 1437 | | |
1436 | 1438 | | |
1437 | | - | |
| 1439 | + | |
1438 | 1440 | | |
1439 | 1441 | | |
1440 | | - | |
1441 | 1442 | | |
1442 | 1443 | | |
1443 | 1444 | | |
| |||
1453 | 1454 | | |
1454 | 1455 | | |
1455 | 1456 | | |
| 1457 | + | |
| 1458 | + | |
1456 | 1459 | | |
1457 | 1460 | | |
1458 | 1461 | | |
| |||
0 commit comments