cred: allow get_cred() and put_cred() to be given NULL.
authorNeilBrown <neilb@suse.com>
Mon, 3 Dec 2018 00:30:30 +0000 (11:30 +1100)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 19 Dec 2018 18:52:44 +0000 (13:52 -0500)
commitf06bc03339ad4c1baa964a5f0606247ac1c3c50b
treeb31f33d2bd3099e6366d8cdf73cb1bcb3458fdce
parenta6d8e7637faac93f362b694311bff64d5a8c701e
cred: allow get_cred() and put_cred() to be given NULL.

It is common practice for helpers like this to silently,
accept a NULL pointer.
get_rpccred() and put_rpccred() used by NFS act this way
and using the same interface will ease the conversion
for NFS, and simplify the resulting code.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
include/linux/cred.h