Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e95e9a7a authored by Sage Weil's avatar Sage Weil
Browse files

ceph: avoid possible null dereference



ac->ops may be null; use protocol id in error message instead.

Reported-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarSage Weil <sage@newdream.net>
parent aa91647c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
			}
		}