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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 9 Jun 2012 15:36:09 +0000 (00:36 +0900)
commitc780682d113ef97164359897f4463585b4c27524
tree3a8e1278191eb864849c8fbce606e7ca2d830af4
parent2b06dfb55b78e57734a696324ce7d593b1c084be
NFS: kmalloc() doesn't return an ERR_PTR()

commit 5abc03cd919535c61b813f2319cb38326a41e810 upstream.

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

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/idmap.c