From: Bing Zhao Date: Thu, 9 Aug 2012 02:01:52 +0000 (-0700) Subject: mwifiex: fix 'smatch' warning in preparing key_material cmd X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~47^2~319^2^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=641c869d40c7ec6a34930843f41e95bf1f53f29f;p=pandora-kernel.git mwifiex: fix 'smatch' warning in preparing key_material cmd The key length can be 32 bytes for TKIP and 16 bytes for AES_CMAC. 'smatch' warns on memcpy using key_len variable to copy data to a 16 bytes buffer. Use fixed length to avoid the warning. Reported-by: Dan Carpenter Signed-off-by: Bing Zhao Signed-off-by: John W. Linville --- Reading git-diff-tree failed