mac80211: fix error in sizeof() usage
authorCong Ding <dinggnu@gmail.com>
Wed, 6 Feb 2013 16:23:45 +0000 (17:23 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 6 Feb 2013 16:31:55 +0000 (17:31 +0100)
commit9887dbf5b2163bcf69cd4456c21352e9a81c6003
treeef7024d3905bacfdcbb0501bf5c64962cd577a43
parentc49dc9008b1c641a86837297df7c90cef070571b
mac80211: fix error in sizeof() usage

Using 'sizeof' on array given as function argument returns
size of a pointer rather than the size of array.

Cc: stable@vger.kernel.org
Signed-off-by: Cong Ding <dinggnu@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c