libceph: fix ceph_msg_new error path
authorHenry C Chang <henry.cy.chang@gmail.com>
Tue, 3 May 2011 02:29:56 +0000 (02:29 +0000)
committerSage Weil <sage@newdream.net>
Tue, 3 May 2011 16:28:11 +0000 (09:28 -0700)
commitca20892db7567c40e8ed0668f46cf0d085d7db6d
tree80fe0a4cf9304b834e9faadbc08fb293db78cc84
parent3772d26d87efc2d91b2e4247e0001c89ed09a980
libceph: fix ceph_msg_new error path

If memory allocation failed, calling ceph_msg_put() will cause GPF
since some of ceph_msg variables are not initialized first.

Fix Bug #970.

Signed-off-by: Henry C Chang <henry_c_chang@tcloudcomputing.com>
Signed-off-by: Sage Weil <sage@newdream.net>
net/ceph/messenger.c