NFS: kmalloc() doesn't return an ERR_PTR()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 14 May 2012 19:45:28 +0000 (22:45 +0300)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 15 May 2012 00:44:01 +0000 (17:44 -0700)
commit5abc03cd919535c61b813f2319cb38326a41e810
tree22a180bdca008b9f7a1951c01f4732d4433e6ddd
parent36be50515fe2aef61533b516fa2576a2c7fe7664
NFS: kmalloc() doesn't return an ERR_PTR()

Obviously we should check for NULL here instead of IS_ERR().

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: stable@vger.kernel.org [3.4]
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/idmap.c