OSDN Git Service

net: netlink_getname, packet_getname -- use DECLARE_SOCKADDR guard
authorCyrill Gorcunov <gorcunov@openvz.org>
Sun, 8 Nov 2009 05:51:19 +0000 (05:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Nov 2009 04:54:41 +0000 (20:54 -0800)
commit13cfa97bef0f1172879f98307ac716acf3e9cea9
tree012d5da286e39fbe94c7b100be9153a49191bd7e
parent37e8273cd30592d3a82bcb70cbb1bdc4eaeb6b71
net: netlink_getname, packet_getname -- use DECLARE_SOCKADDR guard

Use guard DECLARE_SOCKADDR in a few more places which allow
us to catch if the structure copied back is too big.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/af_netlink.c
net/packet/af_packet.c
net/unix/af_unix.c