patch-2.4.26 linux-2.4.26/drivers/net/ibm_emac/ibm_ocp_mal.c

Next file: linux-2.4.26/drivers/net/natsemi.c
Previous file: linux-2.4.26/drivers/net/ibm_emac/ibm_ocp_enet.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.25/drivers/net/ibm_emac/ibm_ocp_mal.c linux-2.4.26/drivers/net/ibm_emac/ibm_ocp_mal.c
@@ -62,7 +62,7 @@
 	/* Don't let multiple commacs claim the same channel */
 	if ( (mal->tx_chan_mask & commac->tx_chan_mask) ||
 	     (mal->rx_chan_mask & commac->rx_chan_mask) ) {
-	     	write_unlock(&mal_list_lock);
+	     	write_unlock_irqrestore(&mal_list_lock, flags);
 		return -EBUSY;
 	}
 

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