rtnetlink: fix rtnl_calcit() and rtnl_dump_ifinfo()
authorEric Dumazet <eric.dumazet@gmail.com>
Sun, 4 Mar 2012 12:32:10 +0000 (12:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Mar 2012 03:02:55 +0000 (22:02 -0500)
commita4b64fbe482c7766f7925f03067fc637716bfa3f
treee2e447e8f37092eaccc914ffb6d3eea455cd56fa
parent709e1b5cd9e1915ad4f6c470ebf6b55d4a911d8c
rtnetlink: fix rtnl_calcit() and rtnl_dump_ifinfo()

nlmsg_parse() might return an error, so test its return value before
potential random memory accesses.

Errors introduced in commit 115c9b81928 (rtnetlink: Fix problem with
buffer allocation)

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Greg Rose <gregory.v.rose@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c