]> git.baikalelectronics.ru Git - kernel.git/commit
stmmac: fix sleep inside atomic
authorGiuseppe Cavallaro <peppe.cavallaro@st.com>
Mon, 6 Sep 2010 03:02:11 +0000 (05:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Sep 2010 20:57:14 +0000 (13:57 -0700)
commit75e1de2b8ecb8cf16728bf3a2ef8ec9f5f6d3399
treee5c70a0251b2da8112939cd0316061839e3242ef
parent112fa826c85c94e57a98a8d90d5e3047e065c290
stmmac: fix sleep inside atomic

We cannot use spinlock when kmalloc is invoked with
GFP_KERNEL flag because it can sleep.
So this patch reviews the usage of spinlock within the
stmmac_resume function avoing this bug.

Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Reported-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/stmmac/stmmac_main.c