aboutsummaryrefslogtreecommitdiffstats
path: root/net/ceph/messenger.c
diff options
context:
space:
mode:
authorAlex Elder <elder@inktank.com>2013-03-08 19:51:03 -0500
committerSage Weil <sage@inktank.com>2013-05-02 00:16:29 -0400
commit7b11ba37585595034a91df8869414f732466b800 (patch)
tree7ed58d6ffe58456be69c2c3597426c5c1a5740e0 /net/ceph/messenger.c
parent4137577ae398837b0d5e47d4d9365320584efdad (diff)
libceph: define CEPH_MSG_MAX_MIDDLE_LEN
This is probably unnecessary but the code read as if it were wrong in read_partial_message(). Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'net/ceph/messenger.c')
-rw-r--r--net/ceph/messenger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ceph/messenger.c b/net/ceph/messenger.c
index af0c35d40048..b8d0da56d610 100644
--- a/net/ceph/messenger.c
+++ b/net/ceph/messenger.c
@@ -1887,7 +1887,7 @@ static int read_partial_message(struct ceph_connection *con)
1887 if (front_len > CEPH_MSG_MAX_FRONT_LEN) 1887 if (front_len > CEPH_MSG_MAX_FRONT_LEN)
1888 return -EIO; 1888 return -EIO;
1889 middle_len = le32_to_cpu(con->in_hdr.middle_len); 1889 middle_len = le32_to_cpu(con->in_hdr.middle_len);
1890 if (middle_len > CEPH_MSG_MAX_DATA_LEN) 1890 if (middle_len > CEPH_MSG_MAX_MIDDLE_LEN)
1891 return -EIO; 1891 return -EIO;
1892 data_len = le32_to_cpu(con->in_hdr.data_len); 1892 data_len = le32_to_cpu(con->in_hdr.data_len);
1893 if (data_len > CEPH_MSG_MAX_DATA_LEN) 1893 if (data_len > CEPH_MSG_MAX_DATA_LEN)