summaryrefslogtreecommitdiff
path: root/drivers/misc/mbox_channels-db5500.c
diff options
context:
space:
mode:
authorBibek Basu <bibek.basu@stericsson.com>2011-05-31 15:49:11 +0530
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 11:07:10 +0200
commit90340709abb21e9124846cf39460c4dd9769febb (patch)
treeca3ace74c7342feb8ce2dc5081fe0f06dba3bc82 /drivers/misc/mbox_channels-db5500.c
parentb311033ce81d805d2de23d88b1f19bea19258197 (diff)
u5500 : Change flag to GFP_ATOMIC for memory req
In interrupt handler one should request for memory with flag as GFP_ATOMIC ST-Ericsson Linux next: 336280 ST-Ericsson ID: 343229 ST-Ericsson FOSS-OUT ID: N/00201-FEA 212 8003 Signed-off-by: Bibek Basu <bibek.basu@stericsson.com> Change-Id: Ic5510e48f6e4d7acbdfa3ac681ecd2fac1e60e46 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/24222 Reviewed-by: QATEST Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com> Reviewed-by: Martin PERSSON <martin.persson@stericsson.com> Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
Diffstat (limited to 'drivers/misc/mbox_channels-db5500.c')
-rw-r--r--drivers/misc/mbox_channels-db5500.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/mbox_channels-db5500.c b/drivers/misc/mbox_channels-db5500.c
index 64aaa29cc4f..1fb883f3296 100644
--- a/drivers/misc/mbox_channels-db5500.c
+++ b/drivers/misc/mbox_channels-db5500.c
@@ -475,7 +475,7 @@ static void handle_open_msg(u16 channel, u8 mbox_id)
schedule_work(&tx_chan->open_msg);
} else {
/* No tx channel found on the list, allocate new element */
- tx_chan = kzalloc(sizeof(*tx_chan), GFP_KERNEL);
+ tx_chan = kzalloc(sizeof(*tx_chan), GFP_ATOMIC);
if (tx_chan == NULL) {
dev_err(&channels.pdev->dev,
"failed to allocate memory\n");