mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 01:13:11 +00:00
The dev field of the neigh_create event uses __dynamic_array() with a fixed size, which defeats the purpose of __dynamic_array(). Looking at the logic, as it already uses __assign_str(), just use the same logic in __string to create the size needed. It appears that because "dev" can be NULL, it needs the check. But __string() can have the same checks as __assign_str() so use them there too. Link: https://lkml.kernel.org/r/[email protected] Cc: David Ahern <[email protected]> Cc: David S. Miller <[email protected]> Cc: [email protected] Acked-by: Jakub Kicinski <[email protected]> Reviewed-by: David Ahern <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>