]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Fix potential OOPs in blkdev_open()
authorPavel Emelianov <xemul@openvz.org>
Sat, 28 Oct 2006 17:38:33 +0000 (10:38 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 28 Oct 2006 18:30:52 +0000 (11:30 -0700)
commit4d3a45420bfd691227cdac7536d1851e25b291f3
tree6c9e0f73d39646670c301e19ccd8b33d3aa3a293
parent8ee87fd666254c7f1d2b9685382f66af4d23bfd7
[PATCH] Fix potential OOPs in blkdev_open()

blkdev_open() calls bc_acquire() to get a struct block_device.  Since
bc_acquire() may return NULL when system is out of memory an appropriate
check is required.

Signed-off-by: Pavel Emelianov <xemul@openvz.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/block_dev.c