diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2018-01-02 17:54:22 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-01-09 17:00:13 +0100 |
commit | ab9b3de70199f7479e251c30128b30b5559c97b7 (patch) | |
tree | d93f6f2a7d186e9b5681ae54cb6012c49e85ca34 /drivers/slimbus/messaging.c | |
parent | c88c8d7aae9e8ef0aa472803f3a14ee9876bbca3 (diff) | |
download | linux-ab9b3de70199f7479e251c30128b30b5559c97b7.tar.gz linux-ab9b3de70199f7479e251c30128b30b5559c97b7.tar.bz2 linux-ab9b3de70199f7479e251c30128b30b5559c97b7.zip |
slimbus: Use GFP_ATOMIC under spin lock
A spin lock is taken here so we should use GFP_ATOMIC.
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/slimbus/messaging.c')
-rw-r--r-- | drivers/slimbus/messaging.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/slimbus/messaging.c b/drivers/slimbus/messaging.c index 8b2c77f516b9..a9a6dc4af0da 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) |