]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0ef7da9f28162adbf2fb0a7796b7ef8e0ed748d3
treeb31f33d2bd3099e6366d8cdf73cb1bcb3458fdce
parentd8c4fb3525cbcf4bf212517c83e2fcf670a4d4d1
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