staging: wilc1000: wilc_msgqueue.c: use kmalloc with GFP_ATOMIC
This patch use kmalloc with GFP_ATOMIC instead of WILC_MALLOC. It is inside the spin lock region. Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8c589c2401
commit
d9998a91fe
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ int wilc_mq_send(WILC_MsgQueueHandle *pHandle,
|
|||
WILC_NULLCHECK(s32RetStatus, pstrMessage);
|
||||
pstrMessage->u32Length = u32SendBufferSize;
|
||||
pstrMessage->pstrNext = NULL;
|
||||
pstrMessage->pvBuffer = WILC_MALLOC(u32SendBufferSize);
|
||||
pstrMessage->pvBuffer = kmalloc(u32SendBufferSize, GFP_ATOMIC);
|
||||
WILC_NULLCHECK(s32RetStatus, pstrMessage->pvBuffer);
|
||||
memcpy(pstrMessage->pvBuffer, pvSendBuffer, u32SendBufferSize);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue