patch-2.2.11 linux/drivers/net/hostess_sv11.c

Next file: linux/drivers/net/irda/toshoboe.c
Previous file: linux/drivers/net/hamradio/yam9600.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.10/linux/drivers/net/hostess_sv11.c linux/drivers/net/hostess_sv11.c
@@ -389,7 +389,8 @@
 	free_irq(dev->sync.irq, dev);
 	if(dma)
 	{
-		free_dma(dev->sync.chanA.rxdma);
+		if(dma==1)
+			free_dma(dev->sync.chanA.rxdma);
 		free_dma(dev->sync.chanA.txdma);
 	}
 	release_region(dev->sync.chanA.ctrlio-1, 8);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)