diff options
Diffstat (limited to 'fs/ceph/messenger.c')
-rw-r--r-- | fs/ceph/messenger.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/ceph/messenger.c b/fs/ceph/messenger.c index ca2ad0e5bb28..fdda707aa137 100644 --- a/fs/ceph/messenger.c +++ b/fs/ceph/messenger.c | |||
@@ -1361,7 +1361,7 @@ static int read_partial_message(struct ceph_connection *con) | |||
1361 | con->in_msg = ceph_alloc_msg(con, &con->in_hdr, &skip); | 1361 | con->in_msg = ceph_alloc_msg(con, &con->in_hdr, &skip); |
1362 | if (skip) { | 1362 | if (skip) { |
1363 | /* skip this message */ | 1363 | /* skip this message */ |
1364 | pr_err("alloc_msg returned NULL, skipping message\n"); | 1364 | dout("alloc_msg returned NULL, skipping message\n"); |
1365 | con->in_base_pos = -front_len - middle_len - data_len - | 1365 | con->in_base_pos = -front_len - middle_len - data_len - |
1366 | sizeof(m->footer); | 1366 | sizeof(m->footer); |
1367 | con->in_tag = CEPH_MSGR_TAG_READY; | 1367 | con->in_tag = CEPH_MSGR_TAG_READY; |
@@ -1370,7 +1370,8 @@ static int read_partial_message(struct ceph_connection *con) | |||
1370 | if (IS_ERR(con->in_msg)) { | 1370 | if (IS_ERR(con->in_msg)) { |
1371 | ret = PTR_ERR(con->in_msg); | 1371 | ret = PTR_ERR(con->in_msg); |
1372 | con->in_msg = NULL; | 1372 | con->in_msg = NULL; |
1373 | con->error_msg = "error allocating memory for incoming message"; | 1373 | con->error_msg = |
1374 | "error allocating memory for incoming message"; | ||
1374 | return ret; | 1375 | return ret; |
1375 | } | 1376 | } |
1376 | m = con->in_msg; | 1377 | m = con->in_msg; |