diff options
| author | David Laight <david.laight.linux@gmail.com> | 2026-06-08 22:20:42 +0100 |
|---|---|---|
| committer | Chuck Lever <cel@kernel.org> | 2026-08-10 09:54:35 -0400 |
| commit | babc3b8a1afee30e5cbe63acd77d4882f9d5c870 (patch) | |
| tree | f1cb3aed572a23e457fb709a07d16b8ee782fe42 /include/linux | |
| parent | 75e620912c815801ea241e133ba34c9e8cf2cbb1 (diff) | |
lockd: Use "%*phN" to dprintk() a cookie
Simplifies the code and removes a 'not obviously bounded' strcpy().
Delete the local function nlmdbg_cookie2a() that did the equivalent.
There is no need to worry about cookie->len being more than
NLM_MAXCOOKIELEN (32), the buffer holding it is only that long.
The existing length checks must pre-date this code being added in 2.4.26.
Signed-off-by: David Laight <david.laight.linux@gmail.com>
Link: https://patch.msgid.link/20260608212042.25476-1-david.laight.linux@gmail.com
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
