lkml.org 
[lkml]   [2018]   [May]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] wcn36xx: Add support for Factory Test Mode (FTM)
On 17 May 2018 at 21:37, Jeff Johnson <jjohnson@codeaurora.org> wrote:
> On 2018-05-17 04:32, Ramon Fried wrote:
>>
>> From: Eyal Ilsar <eilsar@codeaurora.org>
>
> ...
>>
>> +int wcn36xx_smd_process_ptt_msg(struct wcn36xx *wcn,
>> + struct ieee80211_vif *vif, void *ptt_msg,
>> size_t len,
>> + void **ptt_rsp_msg)
>> +{
>> + struct wcn36xx_hal_process_ptt_msg_req_msg *p_msg_body;
>> + int ret = 0;
>> +
>> + mutex_lock(&wcn->hal_mutex);
>> + p_msg_body = kmalloc(
>> + sizeof(struct wcn36xx_hal_process_ptt_msg_req_msg) + len,
>> + GFP_ATOMIC);
>
>
> NULL check required?
>
>> + INIT_HAL_PTT_MSG(p_msg_body, len);
>> +

Thanks Jeff. will fix it and send again :)

\
 
 \ /
  Last update: 2018-05-18 12:07    [W:0.046 / U:10.760 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site