nl80211: fix MAC address validation
authorEliad Peller <eliad@wizery.com>
Thu, 24 Nov 2011 16:13:56 +0000 (18:13 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 28 Nov 2011 18:46:40 +0000 (13:46 -0500)
commite007b857e88097c96c45620bf3b04a4e309053d1
tree3ebc3353b33539c33e50335c9391f8727e826614
parent82e5fc2a34fa9ffea38f00c4066b7e600a0ca5e6
nl80211: fix MAC address validation

MAC addresses have a fixed length. The current
policy allows passing < ETH_ALEN bytes, which
might result in reading beyond the buffer.

Cc: stable@vger.kernel.org
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/nl80211.c