diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/sunrpc/auth.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/sunrpc/auth.h b/include/linux/sunrpc/auth.h index 6f36b2bf3e05..899791573a40 100644 --- a/include/linux/sunrpc/auth.h +++ b/include/linux/sunrpc/auth.h | |||
| @@ -202,7 +202,8 @@ char * rpcauth_stringify_acceptor(struct rpc_cred *); | |||
| 202 | static inline | 202 | static inline |
| 203 | struct rpc_cred * get_rpccred(struct rpc_cred *cred) | 203 | struct rpc_cred * get_rpccred(struct rpc_cred *cred) |
| 204 | { | 204 | { |
| 205 | atomic_inc(&cred->cr_count); | 205 | if (cred != NULL) |
| 206 | atomic_inc(&cred->cr_count); | ||
| 206 | return cred; | 207 | return cred; |
| 207 | } | 208 | } |
| 208 | 209 | ||
