staging: wilc1000: use kmalloc instead of WILC_NEW
WILC_NEW is replaced by kmallo with GFP_ATOMIC. This kmalloc is inside a spin_lock_irqsave 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
6e3f05bfc0
commit
5c07828f5d
|
@ -68,7 +68,7 @@ WILC_ErrNo WILC_MsgQueueSend(WILC_MsgQueueHandle *pHandle,
|
|||
spin_lock_irqsave(&pHandle->strCriticalSection, flags);
|
||||
|
||||
/* construct a new message */
|
||||
pstrMessage = WILC_NEW(Message, 1);
|
||||
pstrMessage = kmalloc(sizeof(Message), GFP_ATOMIC);
|
||||
WILC_NULLCHECK(s32RetStatus, pstrMessage);
|
||||
pstrMessage->u32Length = u32SendBufferSize;
|
||||
pstrMessage->pstrNext = NULL;
|
||||
|
|
Loading…
Reference in New Issue