diff options
Diffstat (limited to 'fs/nfsd/nfs4callback.c')
-rw-r--r-- | fs/nfsd/nfs4callback.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c index c74e4538d0eb..a9d24d5a967c 100644 --- a/fs/nfsd/nfs4callback.c +++ b/fs/nfsd/nfs4callback.c | |||
@@ -60,16 +60,6 @@ struct nfs4_cb_compound_hdr { | |||
60 | int status; | 60 | int status; |
61 | }; | 61 | }; |
62 | 62 | ||
63 | /* | ||
64 | * Handle decode buffer overflows out-of-line. | ||
65 | */ | ||
66 | static void print_overflow_msg(const char *func, const struct xdr_stream *xdr) | ||
67 | { | ||
68 | dprintk("NFS: %s prematurely hit the end of our receive buffer. " | ||
69 | "Remaining buffer length is %tu words.\n", | ||
70 | func, xdr->end - xdr->p); | ||
71 | } | ||
72 | |||
73 | static __be32 *xdr_encode_empty_array(__be32 *p) | 63 | static __be32 *xdr_encode_empty_array(__be32 *p) |
74 | { | 64 | { |
75 | *p++ = xdr_zero; | 65 | *p++ = xdr_zero; |
@@ -240,7 +230,6 @@ static int decode_cb_op_status(struct xdr_stream *xdr, | |||
240 | *status = nfs_cb_stat_to_errno(be32_to_cpup(p)); | 230 | *status = nfs_cb_stat_to_errno(be32_to_cpup(p)); |
241 | return 0; | 231 | return 0; |
242 | out_overflow: | 232 | out_overflow: |
243 | print_overflow_msg(__func__, xdr); | ||
244 | return -EIO; | 233 | return -EIO; |
245 | out_unexpected: | 234 | out_unexpected: |
246 | dprintk("NFSD: Callback server returned operation %d but " | 235 | dprintk("NFSD: Callback server returned operation %d but " |
@@ -309,7 +298,6 @@ static int decode_cb_compound4res(struct xdr_stream *xdr, | |||
309 | hdr->nops = be32_to_cpup(p); | 298 | hdr->nops = be32_to_cpup(p); |
310 | return 0; | 299 | return 0; |
311 | out_overflow: | 300 | out_overflow: |
312 | print_overflow_msg(__func__, xdr); | ||
313 | return -EIO; | 301 | return -EIO; |
314 | } | 302 | } |
315 | 303 | ||
@@ -437,7 +425,6 @@ out: | |||
437 | cb->cb_seq_status = status; | 425 | cb->cb_seq_status = status; |
438 | return status; | 426 | return status; |
439 | out_overflow: | 427 | out_overflow: |
440 | print_overflow_msg(__func__, xdr); | ||
441 | status = -EIO; | 428 | status = -EIO; |
442 | goto out; | 429 | goto out; |
443 | } | 430 | } |