mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
qcacld-3.0: Validate ENABLEEXTWOW command
qcacld-2.0 to qcacld-3.0 propagation. Validate arguments for ENABLEEXTWOW command and return failure on invalid arguments. Change-Id: I73556989f79754bca1bf4226ad71c2358b3a7526 CRs-Fixed: 857123 (cherry picked from commit 15e232c5aab90e6ed53d3a9a7f8d631ae451402e)
This commit is contained in:
parent
02dd2e71c5
commit
43e0c7541b
1 changed files with 5 additions and 1 deletions
|
|
@ -5736,7 +5736,11 @@ static int drv_cmd_enable_ext_wow(hdd_adapter_t *adapter,
|
|||
/* Move pointer to ahead of ENABLEEXTWOW */
|
||||
value = value + command_len;
|
||||
|
||||
sscanf(value, "%d", &set_value);
|
||||
if (!(sscanf(value, "%d", &set_value))) {
|
||||
QDF_TRACE(QDF_MODULE_ID_HDD, QDF_TRACE_LEVEL_INFO,
|
||||
("No input identified"));
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
return hdd_enable_ext_wow_parser(adapter,
|
||||
adapter->sessionId,
|
||||
|
|
|
|||
Loading…
Reference in a new issue