1
0
Files
linux/mm
Miklos Szeredi 8074b26f67 mm: fix refcounting in swapon
Grab a reference to bdev before calling blkdev_get(), which expects
the refcount to be already incremented and either returns success or
decrements the refcount and returns an error.

The bug was introduced by e525fd89 (block: make blkdev_get/put()
handle exclusive access), which didn't take into account this behavior
of blkdev_get().

Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-02-24 08:55:01 -08:00
..
2011-01-13 17:32:49 -08:00
2011-01-13 17:32:42 -08:00
2011-01-13 17:32:46 -08:00
2011-01-13 17:32:41 -08:00
2011-01-07 17:50:26 +11:00
2011-01-15 13:28:36 +02:00
2011-01-13 17:32:43 -08:00
2011-01-13 17:32:41 -08:00
2011-01-17 14:42:34 -08:00
2011-02-24 08:55:01 -08:00
2011-01-20 17:02:06 -08:00
2011-01-13 17:32:43 -08:00