Files
linux/drivers/md
Luis Chamberlain 089975379d dm: add add_disk() error handling
We never checked for errors on add_disk() as this function returned
void. Now that this is fixed, use the shiny new error handling.

There are two calls to dm_setup_md_queue() which can fail then, one on
dm_early_create() and we can easily see that the error path there
calls dm_destroy in the error path. The other use case is on the ioctl
table_load case. If that fails userspace needs to call the
DM_DEV_REMOVE_CMD to cleanup the state - similar to any other
failure.

Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
2021-11-01 13:28:44 -04:00
..
2021-08-16 10:50:33 -06:00
2021-08-10 13:32:40 -04:00
2021-02-26 15:49:51 -07:00
2021-11-01 13:28:44 -04:00
2021-06-04 12:07:37 -04:00
2021-09-22 08:45:58 -07:00
2021-08-12 10:29:36 -06:00
2021-06-14 22:32:07 -07:00
2021-06-14 22:32:07 -07:00