]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 16 Nov 2012 16:46:52 +0000 (16:46 +0000)
commitbdf24c170f3ac62c564392ca60a682baa0e7ef58
treeedce8bc7dd23008a7a60e2638eb9ad25bdbf9be1
parentd318a127e273716c9531fe70d497ca24db4c0bf1
rtnetlink: fix rtnl_calcit() and rtnl_dump_ifinfo()

commit a4b64fbe482c7766f7925f03067fc637716bfa3f upstream.

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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
net/core/rtnetlink.c