mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04:00
recent and hashlimit both create /proc files, but only check that name is 0 terminated. This can trigger WARN() from procfs when name is "" or "/". Add helper for this and then use it for both. Cc: Eric Dumazet <[email protected]> Reported-by: Eric Dumazet <[email protected]> Reported-by: <[email protected]> Signed-off-by: Florian Westphal <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>