mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-18 19:40:46 +09:00
commita4b64fbe48upstream. nlmsg_parse() might return an error, so test its return value before potential random memory accesses. Errors introduced in commit115c9b8192(rtnetlink: Fix problem with buffer allocation) Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Acked-by: Greg Rose <gregory.v.rose@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net> Cc: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>