dlm: NULL dereference on failure in kmem_cache_create()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 15 May 2012 08:58:12 +0000 (11:58 +0300)
committerDavid Teigland <teigland@redhat.com>
Tue, 15 May 2012 15:39:28 +0000 (10:39 -0500)
commit75af271ed5f51b1f3506c7c1d567b1f32e5c9206
tree5df97190f3ac4aba1bfed021e1a03392d447830e
parent1a058f5288a74a20d5567a85ab1a04a9de69a212
dlm: NULL dereference on failure in kmem_cache_create()

We aren't allowed to pass NULL pointers to kmem_cache_destroy() so if
both allocations fail, it leads to a NULL dereference.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/memory.c