OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
rpc: properly check debugfs dentry before using it
[uclinux-h8/linux.git]
/
net
/
sunrpc
/
debugfs.c
diff --git
a/net/sunrpc/debugfs.c
b/net/sunrpc/debugfs.c
index
45a0333
..
19bb356
100644
(file)
--- a/
net/sunrpc/debugfs.c
+++ b/
net/sunrpc/debugfs.c
@@
-146,7
+146,7
@@
rpc_clnt_debugfs_register(struct rpc_clnt *clnt)
rcu_read_lock();
xprt = rcu_dereference(clnt->cl_xprt);
/* no "debugfs" dentry? Don't bother with the symlink. */
- if (
!xprt->debugfs
) {
+ if (
IS_ERR_OR_NULL(xprt->debugfs)
) {
rcu_read_unlock();
return;
}