Commit 6a2aae06cc1e87e9712a26a639f6a2f3442e2027
Committed by
Linus Torvalds
1 parent
f2d0aa5bf8
Exists in
master
and in
4 other branches
[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>
Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff