hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/fs/lockd/clnt4xdr.c
....@@ -75,17 +75,6 @@
7575 }
7676
7777 /*
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
-/*
8978 * Encode/decode NLMv4 basic data types
9079 *
9180 * Basic NLMv4 data types are defined in Appendix II, section 6.1.4
....@@ -176,7 +165,6 @@
176165 dprintk("NFS: returned cookie was too long: %u\n", length);
177166 return -EIO;
178167 out_overflow:
179
- print_overflow_msg(__func__, xdr);
180168 return -EIO;
181169 }
182170
....@@ -236,7 +224,6 @@
236224 __func__, be32_to_cpup(p));
237225 return -EIO;
238226 out_overflow:
239
- print_overflow_msg(__func__, xdr);
240227 return -EIO;
241228 }
242229
....@@ -309,7 +296,6 @@
309296 out:
310297 return error;
311298 out_overflow:
312
- print_overflow_msg(__func__, xdr);
313299 return -EIO;
314300 }
315301