diff options
author | Luis Chamberlain <[email protected]> | 2021-09-02 10:40:58 -0700 |
---|---|---|
committer | Ulf Hansson <[email protected]> | 2021-10-12 10:21:16 +0200 |
commit | 2304c55fd506fcd5e1a59ae21a306ee82507340b (patch) | |
tree | 7023e2a64e545fa4b8ca9291455a6e9040237e60 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 295c894c37f7cf075dc5cf044e45fb781936fa50 (diff) |
memstick: ms_block: Add error handling support for add_disk()
We never checked for errors on add_disk() as this function returned void.
Now that this is fixed, use the shiny new error handling.
Contrary to the typical removal which delays the put_disk() until later,
since we are failing on a probe we immediately put the disk on failure from
add_disk by using blk_cleanup_disk().
Signed-off-by: Luis Chamberlain <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions