]> git.baikalelectronics.ru Git - kernel.git/commit
af_packet: do not accept mc address smaller then dev->addr_len in packet_mc_add()
authorJiri Pirko <jpirko@redhat.com>
Wed, 24 Feb 2010 23:57:04 +0000 (23:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Feb 2010 12:18:34 +0000 (04:18 -0800)
commit9f7a85eab140c9dc43379c18704976a22fbc4234
tree1e2d35a5dd2c1dcba1cc02f9c022ce923dc12d9f
parent05ed618806bd07b7e5fd5406e8e0784448db8557
af_packet: do not accept mc address smaller then dev->addr_len in packet_mc_add()

There is no point of accepting an address of smaller length than dev->addr_len
here. Therefore change this for stonger check.

Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c