diff options
Diffstat (limited to 'fs/lockd/clnt4xdr.c')
-rw-r--r-- | fs/lockd/clnt4xdr.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/fs/lockd/clnt4xdr.c b/fs/lockd/clnt4xdr.c index 214a2fa1f1e3..7df6324ccb8a 100644 --- a/fs/lockd/clnt4xdr.c +++ b/fs/lockd/clnt4xdr.c | |||
@@ -75,17 +75,6 @@ static void nlm4_compute_offsets(const struct nlm_lock *lock, | |||
75 | } | 75 | } |
76 | 76 | ||
77 | /* | 77 | /* |
78 | * Handle decode buffer overflows out-of-line. | ||
79 | */ | ||
80 | static void print_overflow_msg(const char *func, const struct xdr_stream *xdr) | ||
81 | { | ||
82 | dprintk("lockd: %s prematurely hit the end of our receive buffer. " | ||
83 | "Remaining buffer length is %tu words.\n", | ||
84 | func, xdr->end - xdr->p); | ||
85 | } | ||
86 | |||
87 | |||
88 | /* | ||
89 | * Encode/decode NLMv4 basic data types | 78 | * Encode/decode NLMv4 basic data types |
90 | * | 79 | * |
91 | * Basic NLMv4 data types are defined in Appendix II, section 6.1.4 | 80 | * Basic NLMv4 data types are defined in Appendix II, section 6.1.4 |
@@ -176,7 +165,6 @@ out_size: | |||
176 | dprintk("NFS: returned cookie was too long: %u\n", length); | 165 | dprintk("NFS: returned cookie was too long: %u\n", length); |
177 | return -EIO; | 166 | return -EIO; |
178 | out_overflow: | 167 | out_overflow: |
179 | print_overflow_msg(__func__, xdr); | ||
180 | return -EIO; | 168 | return -EIO; |
181 | } | 169 | } |
182 | 170 | ||
@@ -236,7 +224,6 @@ out_bad_xdr: | |||
236 | __func__, be32_to_cpup(p)); | 224 | __func__, be32_to_cpup(p)); |
237 | return -EIO; | 225 | return -EIO; |
238 | out_overflow: | 226 | out_overflow: |
239 | print_overflow_msg(__func__, xdr); | ||
240 | return -EIO; | 227 | return -EIO; |
241 | } | 228 | } |
242 | 229 | ||
@@ -309,7 +296,6 @@ static int decode_nlm4_holder(struct xdr_stream *xdr, struct nlm_res *result) | |||
309 | out: | 296 | out: |
310 | return error; | 297 | return error; |
311 | out_overflow: | 298 | out_overflow: |
312 | print_overflow_msg(__func__, xdr); | ||
313 | return -EIO; | 299 | return -EIO; |
314 | } | 300 | } |
315 | 301 | ||