From: Jiri Pirko Date: Tue, 2 Mar 2010 20:40:01 +0000 (+0000) Subject: af_packet: move strict addr_len check right before dev_[mc/unicast]_[add/del] X-Git-Tag: v2.6.34-rc2~48^2~83 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1162563f82b434e3099c9e6c1bbdba846d792f0d;p=pandora-kernel.git 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 Reported-by: Pavel Roskin Signed-off-by: David S. Miller --- Reading git-diff-tree failed