Files
android_kernel_xiaomi_sm8450/fs/nfs
Dan Carpenter cdb2e53fd6 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>
2017-10-01 18:51:30 -04:00
..
2017-07-13 17:12:04 -04:00
2017-07-13 17:12:04 -04:00
2012-07-30 19:06:41 -04:00
2017-07-13 15:58:04 -04:00
2015-02-03 11:06:34 -08:00
2016-03-31 00:30:15 -04:00
2017-07-13 15:58:04 -04:00
2017-04-20 13:39:35 -04:00
2015-04-23 15:16:14 -04:00
2015-04-23 15:16:14 -04:00
2017-07-13 16:00:15 -04:00
2017-10-01 18:51:30 -04:00
2016-05-17 15:47:55 -04:00
2012-07-30 19:06:52 -04:00
2017-09-11 22:20:38 -04:00
2017-07-13 15:58:04 -04:00
2017-09-11 22:20:38 -04:00