diff options
author | Luis Chamberlain <[email protected]> | 2021-11-03 09:40:23 -0700 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2021-11-04 23:21:03 -0600 |
commit | fe7d064fa3faec5d8157029fb8720b4fddc9e1e8 (patch) | |
tree | 710618c7ae9e4141b12e3e1a00251c493e5f748d /tools/perf/scripts/python/arm-cs-trace-disasm.py | |
parent | 10c47870155b5d9a8597eff3345d244e2fe1847f (diff) |
block: fix device_add_disk() kobject_create_and_add() error handling
Commit 83cbce957446 ("block: add error handling for device_add_disk /
add_disk") added error handling to device_add_disk(), however the goto
label for the kobject_create_and_add() failure did not set the return
value correctly, and so we can end up in a situation where
kobject_create_and_add() fails but we report success.
Fixes: 83cbce957446 ("block: add error handling for device_add_disk / add_disk")
Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Luis Chamberlain <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[axboe: fold in followup fix from Wu Bo <[email protected]>]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions