projects
/
profile
/
common
/
kernel-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa91647
)
ceph: avoid possible null dereference
author
Sage Weil
<sage@newdream.net>
Tue, 25 May 2010 16:24:42 +0000
(09:24 -0700)
committer
Sage Weil
<sage@newdream.net>
Sat, 29 May 2010 16:12:36 +0000
(09:12 -0700)
ac->ops may be null; use protocol id in error message instead.
Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/auth.c
patch
|
blob
|
history
diff --git
a/fs/ceph/auth.c
b/fs/ceph/auth.c
index
9f46de2
..
01c4a1c
100644
(file)
--- a/
fs/ceph/auth.c
+++ b/
fs/ceph/auth.c
@@
-217,8
+217,8
@@
int ceph_handle_auth_reply(struct ceph_auth_client *ac,
if (ac->protocol != protocol) {
ret = ceph_auth_init_protocol(ac, protocol);
if (ret) {
- pr_err("error %d on auth
method %s
init\n",
- ret,
ac->ops->name
);
+ pr_err("error %d on auth
protocol %d
init\n",
+ ret,
protocol
);
goto out;
}
}