nfs: handle lock context allocation failures in nfs_create_request
commitf0b7bc25f0b0b14f2a9104d5d99c9dee1678fdb0
authorJeff Layton <jlayton@redhat.com>
Thu, 28 Oct 2010 14:10:37 +0000 (28 10:10 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Dec 2010 21:32:44 +0000 (9 13:32 -0800)
tree26e53f66626bc6f7d617707550d408ceb6b623ca
parent177cc99014fd110f176cc8a686db01d5f09abae9
nfs: handle lock context allocation failures in nfs_create_request

commit 015f0212d51d85bd281a831639a769b4a1a3307a upstream.

nfs_get_lock_context can return NULL on an allocation failure.
Regression introduced by commit f11ac8db.

Reported-by: Steve Dickson <steved@redhat.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/nfs/pagelist.c