[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1514857554-83836-1-git-send-email-weiyongjun1@huawei.com>
Date: Tue, 2 Jan 2018 01:45:54 +0000
From: Wei Yongjun <weiyongjun1@...wei.com>
To: Srinivas Kandagatla <srinivas.kandagatla@...aro.org>,
Sagar Dharia <sdharia@...eaurora.org>
CC: Wei Yongjun <weiyongjun1@...wei.com>,
<alsa-devel@...a-project.org>, <linux-kernel@...r.kernel.org>
Subject: [PATCH -next] slimbus: Use GFP_ATOMIC under spin lock
A spin lock is taken here so we should use GFP_ATOMIC.
Fixes: afbdcc7c384b ("slimbus: Add messaging APIs to slimbus framework")
Signed-off-by: Wei Yongjun <weiyongjun1@...wei.com>
---
drivers/slimbus/messaging.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/slimbus/messaging.c b/drivers/slimbus/messaging.c
index 755462a..ef54ea1 100644
--- a/drivers/slimbus/messaging.c
+++ b/drivers/slimbus/messaging.c
@@ -98,7 +98,7 @@ int slim_do_transfer(struct slim_controller *ctrl, struct slim_msg_txn *txn)
if (need_tid) {
spin_lock_irqsave(&ctrl->txn_lock, flags);
tid = idr_alloc(&ctrl->tid_idr, txn, 0,
- SLIM_MAX_TIDS, GFP_KERNEL);
+ SLIM_MAX_TIDS, GFP_ATOMIC);
txn->tid = tid;
if (!txn->msg->comp)
Powered by blists - more mailing lists