From 15eaa5b8102849fbb542eb7e8529da9f1c6d3bf4 Mon Sep 17 00:00:00 2001 From: Bibek Basu Date: Tue, 31 May 2011 15:49:11 +0530 Subject: 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 Change-Id: Ic5510e48f6e4d7acbdfa3ac681ecd2fac1e60e46 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/24222 Reviewed-by: QATEST Reviewed-by: Linus WALLEIJ Reviewed-by: Martin PERSSON Reviewed-by: Srinidhi KASAGAR --- drivers/misc/mbox_channels-db5500.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers') 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"); -- cgit v1.2.3