lib/btree: fix possible NULL pointer dereference
authorkirjanov@gmail.com <kirjanov@gmail.com>
Sat, 15 May 2010 16:32:34 +0000 (12:32 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 15 May 2010 19:48:10 +0000 (12:48 -0700)
commit43aa7ac736a4e21aae4882bd8f7c67403aed45b8
tree8ebbe9c6053c6552de8ee120384afb1b02bf8f47
parentbdef2fe88b1e4bde7458aedd207929ce3f9d66ee
lib/btree: fix possible NULL pointer dereference

mempool_alloc() can return null in atomic case.

Signed-off-by: Denis Kirjanov <kirjanov@gmail.com>
Cc: Joern Engel <joern@logfs.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/btree.c