summaryrefslogtreecommitdiffstats
path: root/drivers/staging/wilc1000/wilc_msgqueue.c
diff options
context:
space:
mode:
authorChaehyun Lim2015-09-07 17:36:38 +0200
committerGreg Kroah-Hartman2015-09-13 03:24:45 +0200
commitd9998a91fee33153dfddb86fa7301d2e26590dbe (patch)
tree3166940953cf6493b1a17c4a74d61bffe0453fa4 /drivers/staging/wilc1000/wilc_msgqueue.c
parentstaging: wilc1000: linux_wlan.c: use kzalloc instead of WILC_MALLOC (diff)
downloadkernel-qcow2-linux-d9998a91fee33153dfddb86fa7301d2e26590dbe.tar.gz
kernel-qcow2-linux-d9998a91fee33153dfddb86fa7301d2e26590dbe.tar.xz
kernel-qcow2-linux-d9998a91fee33153dfddb86fa7301d2e26590dbe.zip
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>
Diffstat (limited to 'drivers/staging/wilc1000/wilc_msgqueue.c')
-rw-r--r--drivers/staging/wilc1000/wilc_msgqueue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/wilc1000/wilc_msgqueue.c b/drivers/staging/wilc1000/wilc_msgqueue.c
index 76d2e63dc2d5..41244ce942ba 100644
--- a/drivers/staging/wilc1000/wilc_msgqueue.c
+++ b/drivers/staging/wilc1000/wilc_msgqueue.c
@@ -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);