lkml.org 
[lkml]   [2009]   [Oct]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[BUG] znet.c sleeping function called from invalid context
Date
	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



\
 
 \ /
  Last update: 2009-10-07 16:59    [W:0.040 / U:0.212 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site