kernel_optimize_test/net/rose
Julia Lawall e2e0c7c9dd net/rose: Use GFP_ATOMIC
The other calls to kmalloc in the same function use GFP_ATOMIC, and indeed
two locks are held within the body of the function.

The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@ identifier f; @@

*f(...,GFP_ATOMIC,...)
... when != spin_unlock(...)
    when != read_unlock(...)
    when != write_unlock(...)
    when != read_unlock_irq(...)
    when != write_unlock_irq(...)
    when != read_unlock_irqrestore(...)
    when != write_unlock_irqrestore(...)
    when != spin_unlock_irq(...)
    when != spin_unlock_irqrestore(...)
*f(...,GFP_KERNEL,...)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-08-01 00:32:12 -07:00
..
af_rose.c net: sk_sleep() helper 2010-04-20 16:37:13 -07:00
Makefile
rose_dev.c
rose_in.c
rose_link.c
rose_loopback.c
rose_out.c
rose_route.c net/rose: Use GFP_ATOMIC 2010-08-01 00:32:12 -07:00
rose_subr.c
rose_timer.c
sysctl_net_rose.c