On 04/22/2017 01:40 AM, Bart Van Assche wrote: > Make __blk_mq_register_dev() check the blk_mq_debugfs_register() > return value. In the error path, only unregister hctxs for which > registration succeeded. > > Signed-off-by: Bart Van Assche <bart.vanassche@xxxxxxxxxxx> > Cc: Omar Sandoval <osandov@xxxxxx> > Cc: Hannes Reinecke <hare@xxxxxxxx> > --- > block/blk-mq-sysfs.c | 23 +++++++++++++++++------ > 1 file changed, 17 insertions(+), 6 deletions(-) > Reviewed-by: Hannes Reinecke <hare@xxxxxxxx> Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage hare@xxxxxxxx +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, D. Upmanyu, G. Norton HRB 21284 (AG Nürnberg)