qcacmn: Initialize ret in send_pdev_utf_cmd_tlv
If param->len was 0, ret would be returned without being initialized. param->len of 0 is unexpected, so return an error. Change-Id: Ib9b0a60976dedcf8fcd4184083a9948892791621 CRs-Fixed: 1072077
This commit is contained in:

committed by
qcabuildsw

parent
01b7ac01b1
commit
cdd5eda297
@@ -777,7 +777,8 @@ send_pdev_utf_cmd_tlv(wmi_unified_t wmi_handle,
|
||||
{
|
||||
wmi_buf_t buf;
|
||||
uint8_t *cmd;
|
||||
QDF_STATUS ret;
|
||||
/* if param->len is 0 no data is sent, return error */
|
||||
QDF_STATUS ret = QDF_STATUS_E_INVAL;
|
||||
static uint8_t msgref = 1;
|
||||
uint8_t segNumber = 0, segInfo, numSegments;
|
||||
uint16_t chunk_len, total_bytes;
|
||||
|
Reference in New Issue
Block a user