]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf3feca0c69029f713a0d5c244ea0f5c62879c3ab
treeef7024d3905bacfdcbb0501bf5c64962cd577a43
parent48990243c3750e8edf16100d4120761ca1895c2d
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