Skip to content

Commit

Permalink
libceph: fix NULL dereference in reset_connection()
Browse files Browse the repository at this point in the history
We dereference "con->in_msg" on the line after it was set to NULL.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Alex Elder <elder@inktank.com>
  • Loading branch information
Dan Carpenter authored and Alex Elder committed Jun 19, 2012
1 parent 9a64e8e commit 26ce171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ceph/messenger.c
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ static void reset_connection(struct ceph_connection *con)
con->in_msg->con = NULL;
ceph_msg_put(con->in_msg);
con->in_msg = NULL;
ceph_con_put(con->in_msg->con);
ceph_con_put(con);
}

con->connect_seq = 0;
Expand Down

0 comments on commit 26ce171

Please sign in to comment.