commit | cdb2e53fd6dc715c5b45d0967fcb6dc574cb28f8 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Thu Sep 21 00:53:46 2017 +0300 |
committer | Trond Myklebust <trond.myklebust@primarydata.com> | Sun Oct 01 18:51:30 2017 -0400 |
tree | 79c51cee65b7d0aca3c20d90c80e5cf474add959 | |
parent | 35c036ef4a722e953e17884f4f4325f78eeab475 [diff] |
NFS: Cleanup error handling in nfs_idmap_request_key() nfs_idmap_get_desc() can't actually return zero. But if it did then we would return ERR_PTR(0) which is NULL and the caller, nfs_idmap_get_key(), doesn't expect that so it leads to a NULL pointer dereference. I've cleaned this up by changing the "<=" to "<" so it's more clear that we don't return ERR_PTR(0). Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>