]> git.baikalelectronics.ru Git - kernel.git/commit
wlcore: check minimum buffer size in some cmd_send functions
authorLuciano Coelho <luciano.coelho@intel.com>
Mon, 10 Nov 2014 07:25:17 +0000 (09:25 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 11 Nov 2014 21:31:16 +0000 (16:31 -0500)
commit20c6debfdfd1e52b384b16c75995b5d59782b12b
tree550aa0c43dfdc44c6d6623bda54ec2142f420e9b
parent98c87c2d1751fc784fc21da1ae785326913f3d8c
wlcore: check minimum buffer size in some cmd_send functions

Check for the minimum required buffer length in wlcore_cmd_send() and
wlcore_cmd_configure_failsafe.  This ensures that we will never try to
use a buffer that is smaller than the required header.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ti/wlcore/cmd.c