diff --git a/[refs] b/[refs] index 0c0b3b81de7c..061c159e0ade 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 0cf5537b158caae42bcc03f0f6db10f68585b1ec +refs/heads/master: 4a32f93d29b05cdab63c0e2979bc1524c8ea6bf5 diff --git a/trunk/fs/ceph/osd_client.c b/trunk/fs/ceph/osd_client.c index d25b4add85b4..92b7251a53f1 100644 --- a/trunk/fs/ceph/osd_client.c +++ b/trunk/fs/ceph/osd_client.c @@ -1344,7 +1344,7 @@ static void dispatch(struct ceph_connection *con, struct ceph_msg *msg) int type = le16_to_cpu(msg->hdr.type); if (!osd) - return; + goto out; osdc = osd->o_osdc; switch (type) { @@ -1359,6 +1359,7 @@ static void dispatch(struct ceph_connection *con, struct ceph_msg *msg) pr_err("received unknown message type %d %s\n", type, ceph_msg_type_name(type)); } +out: ceph_msg_put(msg); }