]> git.baikalelectronics.ru Git - kernel.git/commit
AFS: Fix possible null pointer dereference in afs_alloc_server()
authorDenis Kirjanov <dkirjanov@hera.kernel.org>
Tue, 1 Jun 2010 16:15:39 +0000 (17:15 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 1 Jun 2010 16:26:36 +0000 (09:26 -0700)
commit3874c17b073ad3ea329f5ea287f991620f37a563
treeb3822d07bbcf0831be533c5e5704081441eae0bc
parent0a0526e9efa9d484d4f11b5538d7eb3d3145c936
AFS: Fix possible null pointer dereference in afs_alloc_server()

Fix a possible null pointer dereference in afs_alloc_server(): the server
pointer is NULL if there was an allocation failure, and under such a
condition, we can't dereference it in the _leave() statement.

Signed-off-by: Denis Kirjanov <dkirjanov@kernel.org>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/afs/server.c