Commit 9b61ffcf authored by Andrew Morton's avatar Andrew Morton Committed by Jeff Garzik

[PATCH] err2-14: skge locking fix

It can return with the lock held.

Found by the Stanford locking checker.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
parent d19201a6
......@@ -1927,6 +1927,7 @@ struct sk_buff *pMessage) /* pointer to send-message */
*/
if (BytesSend < C_LEN_ETHERNET_MINSIZE) {
if ((pMessage = skb_padto(pMessage, C_LEN_ETHERNET_MINSIZE)) == NULL) {
spin_unlock_irqrestore(&pTxPort->TxDesRingLock, Flags);
return 0;
}
pMessage->len = C_LEN_ETHERNET_MINSIZE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment