From: Nathan Hintz Date: Wed, 30 Oct 2013 02:32:01 +0000 (-0700) Subject: bgmac: don't update slot on skb alloc/dma mapping error X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~67^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b757a62e9f0df5c997c666dca4ad81197b5d8917;p=pandora-kernel.git bgmac: don't update slot on skb alloc/dma mapping error Don't update the slot in "bgmac_dma_rx_skb_for_slot" unless both the skb alloc and dma mapping are successful; and free the newly allocated skb if a dma mapping error occurs. This relieves the caller of the need to deduce/execute the appropriate cleanup action required when an error occurs. Signed-off-by: Nathan Hintz Acked-by: Rafał Miłecki Signed-off-by: David S. Miller --- Reading git-diff-tree failed