nfs: handle lock context allocation failures in nfs_create_request
authorJeff Layton <jlayton@redhat.com>
Thu, 28 Oct 2010 14:10:37 +0000 (10:10 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 28 Oct 2010 15:17:25 +0000 (11:17 -0400)
commit015f0212d51d85bd281a831639a769b4a1a3307a
treee873e64419d0a5e1000de1ce8f91e28f0ec5ac41
parent568a810d7edd58bd505222dd1c7e48895532290b
nfs: handle lock context allocation failures in nfs_create_request

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>
Cc: stable@kernel.org
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/pagelist.c