Jan Kara 672a2c87c8 axonram: Fix gendisk handling
It is invalid to call del_gendisk() when disk->queue is NULL. Fix error
handling in axon_ram_probe() to avoid doing that.

Also del_gendisk() does not drop a reference to gendisk allocated by
alloc_disk(). That has to be done by put_disk(). Add that call where
needed.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@fb.com>
2017-03-08 10:55:40 -07:00
..
2016-09-20 20:57:12 +10:00
2017-03-08 10:55:40 -07:00
2010-03-04 10:43:58 -06:00
2016-08-07 23:50:09 -04:00
2016-09-20 20:57:12 +10:00
2016-09-20 20:57:12 +10:00
2016-09-20 20:57:12 +10:00
2016-09-20 20:57:12 +10:00
2016-09-20 20:57:12 +10:00
2016-03-04 23:50:27 -06:00
2016-03-04 23:50:27 -06:00
2016-09-25 02:38:51 -05:00
2013-10-09 20:04:11 -05:00
2016-09-20 20:57:12 +10:00
2016-09-20 20:57:12 +10:00
2014-09-25 23:14:46 +10:00