Revision 8074b26f67165bf045d92e778c9c10dc5e207fc6 authored by Miklos Szeredi on 24 February 2011, 14:49:53 UTC, committed by Linus Torvalds on 24 February 2011, 16:55:01 UTC
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>
1 parent 3c522ce
File | Mode | Size |
---|---|---|
.gitignore | -rw-r--r-- | 151 bytes |
Kconfig | -rw-r--r-- | 5.3 KB |
Makefile | -rw-r--r-- | 2.3 KB |
gen_init_cpio.c | -rw-r--r-- | 12.4 KB |
initramfs_data.S | -rw-r--r-- | 1.3 KB |
Computing file changes ...