From: Sage Weil Date: Tue, 25 May 2010 16:24:42 +0000 (-0700) Subject: ceph: avoid possible null dereference X-Git-Tag: v2.6.35-rc1~16^2~8 X-Git-Url: http://bbs.cooldavid.org/git/?a=commitdiff_plain;h=e95e9a7ae4c1e7655a0438579f891b3c60178d77;p=net-next-2.6.git ceph: avoid possible null dereference ac->ops may be null; use protocol id in error message instead. Reported-by: Dan Carpenter Signed-off-by: Sage Weil --- diff --git a/fs/ceph/auth.c b/fs/ceph/auth.c index 9f46de2ba7a..01c4a1cd53c 100644 --- 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; } }