diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index d4eaa849a820e97ea54911ce9f20efdf594bf38a..51cb02da75d98979b18e05d7bdad4dee89e258d4 100644 --- a/fs/ceph/mds_client.c +++ b/fs/ceph/mds_client.c @@ -2524,8 +2524,7 @@ static void handle_reply(struct ceph_mds_session *session, struct ceph_msg *msg) if (err) { req->r_err = err; } else { - req->r_reply = msg; - ceph_msg_get(msg); + req->r_reply = ceph_msg_get(msg); req->r_got_result = true; } } else {