summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorJiri Pirko <jpirko@redhat.com>2010-03-02 20:40:01 +0000
committerDavid S. Miller <davem@davemloft.net>2010-03-03 01:04:38 -0800
commit1162563f82b434e3099c9e6c1bbdba846d792f0d (patch)
tree3903e4265740f2b2049615d7178aa434252bf5f3 /mm
parent9fe969345b10931319b3f1e7034fbdeb786de234 (diff)
downloadlinux-1162563f82b434e3099c9e6c1bbdba846d792f0d.tar.bz2
af_packet: move strict addr_len check right before dev_[mc/unicast]_[add/del]
My previous patch 914c8ad2d18b62ad1420f518c0cab0b0b90ab308 incorrectly changed the length check in packet_mc_add to be more strict. The problem is that userspace is not filling this field (and it stays zeroed) in case of setting PACKET_MR_PROMISC or PACKET_MR_ALLMULTI. So move the strict check to the point in path where the addr_len must be set correctly. Signed-off-by: Jiri Pirko <jpirko@redhat.com> Reported-by: Pavel Roskin <proski@gnu.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions