diff options
| author | Al Viro <[email protected]> | 2025-02-18 22:57:17 +0000 |
|---|---|---|
| committer | Al Viro <[email protected]> | 2025-06-17 21:57:14 +0000 |
| commit | 101841c38346f4ca41dc1802c867da990ffb32eb (patch) | |
| tree | b24a1cf0dc2d7ce8072a6ebc4db7a6b03b7db231 /drivers/usb/cdns3/cdnsp-debug.h | |
| parent | Linux 6.16-rc1 (diff) | |
| download | kernel-101841c38346f4ca41dc1802c867da990ffb32eb.tar.gz kernel-101841c38346f4ca41dc1802c867da990ffb32eb.zip | |
[ceph] parse_longname(): strrchr() expects NUL-terminated string
... and parse_longname() is not guaranteed that. That's the reason
why it uses kmemdup_nul() to build the argument for kstrtou64();
the problem is, kstrtou64() is not the only thing that need it.
Just get a NUL-terminated copy of the entire thing and be done
with that...
Fixes: dd66df0053ef "ceph: add support for encrypted snapshot names"
Tested-by: Viacheslav Dubeyko <[email protected]>
Reviewed-by: Viacheslav Dubeyko <[email protected]>
Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdnsp-debug.h')
0 files changed, 0 insertions, 0 deletions
