diff options
Diffstat (limited to 'net/ceph/mon_client.c')
-rw-r--r-- | net/ceph/mon_client.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ceph/mon_client.c b/net/ceph/mon_client.c index ab6b24a5169e..8462ccec6333 100644 --- a/net/ceph/mon_client.c +++ b/net/ceph/mon_client.c | |||
@@ -442,6 +442,7 @@ static struct ceph_msg *get_generic_reply(struct ceph_connection *con, | |||
442 | m = NULL; | 442 | m = NULL; |
443 | } else { | 443 | } else { |
444 | dout("get_generic_reply %lld got %p\n", tid, req->reply); | 444 | dout("get_generic_reply %lld got %p\n", tid, req->reply); |
445 | *skip = 0; | ||
445 | m = ceph_msg_get(req->reply); | 446 | m = ceph_msg_get(req->reply); |
446 | /* | 447 | /* |
447 | * we don't need to track the connection reading into | 448 | * we don't need to track the connection reading into |
@@ -982,6 +983,8 @@ static struct ceph_msg *mon_alloc_msg(struct ceph_connection *con, | |||
982 | case CEPH_MSG_MDS_MAP: | 983 | case CEPH_MSG_MDS_MAP: |
983 | case CEPH_MSG_OSD_MAP: | 984 | case CEPH_MSG_OSD_MAP: |
984 | m = ceph_msg_new(type, front_len, GFP_NOFS, false); | 985 | m = ceph_msg_new(type, front_len, GFP_NOFS, false); |
986 | if (!m) | ||
987 | return NULL; /* ENOMEM--return skip == 0 */ | ||
985 | break; | 988 | break; |
986 | } | 989 | } |
987 | 990 | ||