Skip to content

Commit

Permalink
mailbox: bcm2708-vcio: Allocation does not need to be atomic
Browse files Browse the repository at this point in the history
No need to do atomic allocation in a context that can sleep.

Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
  • Loading branch information
notro authored and popcornmix committed Jun 7, 2015
1 parent c03f517 commit 2010049
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mailbox/bcm2708-vcio.c
Expand Up @@ -212,7 +212,7 @@ extern int bcm_mailbox_property(void *data, int size)
mutex_lock(&mailbox_lock);
/* allocate some memory for the messages communicating with GPU */
mem_kern = dma_alloc_coherent(NULL, PAGE_ALIGN(size), &mem_bus,
GFP_ATOMIC);
GFP_KERNEL);
if (mem_kern) {
/* create the message */
mbox_copy_from_user(mem_kern, data, size);
Expand Down

0 comments on commit 2010049

Please sign in to comment.