Jan Kara 4b758df21e bcache: Fix leak of bdev reference
If blkdev_get_by_path() in register_bcache() fails, we try to lookup the
block device using lookup_bdev() to detect which situation we are in to
properly report error. However we never drop the reference returned to
us from lookup_bdev(). Fix that.

Signed-off-by: Jan Kara <jack@suse.cz>
Acked-by: Coly Li <colyli@suse.de>
Cc: stable@vger.kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2017-09-06 08:17:33 -06:00
..
2017-09-06 08:17:33 -06:00
2016-11-01 09:43:26 -06:00
2017-07-25 14:54:20 -04:00
2017-05-08 17:15:12 -07:00
2017-06-09 09:27:32 -06:00
2017-06-09 09:27:32 -06:00
2017-08-28 13:00:44 -06:00
2015-08-13 12:31:57 -06:00
2017-08-28 13:00:44 -06:00