netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG] znet.c sleeping function called from invalid context
@ 2009-10-07 18:47 Alexander Strakh
       [not found] ` <200910071847.38163.strakh-ufN2psIa012HXe+LvDLADg@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Strakh @ 2009-10-07 18:47 UTC (permalink / raw)
  To: David S. Miller, netdev, Linux Kernlel Mailing List

	KERNEL_VERSION: 2.6.31
	DESCRIBE:
Driver drivers/net/znet.c might sleep in atomic context, because it calls 
free_dma under claim_dma_lock:

.drivers/net/znet.c:
 168 static int znet_request_resources (struct net_device *dev)
...
 189        flags = claim_dma_lock();
 190        free_dma (znet->tx_dma);
 191        release_dma_lock (flags);
...

Path to might_sleep macro from znet_request_resources:
1. znet_request_resources calls free_dma at 
arch/blackfin/kernel/bfin_dma_5xx.c:181
2. free_dma calls arch/blackfin/kernel/bfin_dma_5xx.c:195

Found by: Linux Driver Verification


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-10-08  5:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-07 18:47 [BUG] znet.c sleeping function called from invalid context Alexander Strakh
     [not found] ` <200910071847.38163.strakh-ufN2psIa012HXe+LvDLADg@public.gmane.org>
2009-10-07 18:44   ` Mike Frysinger
     [not found]     ` <8bd0f97a0910071144k1d0bf30bv60656181edae8af7-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-10-08  5:15       ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).