From: Stefan Richter Date: Sat, 6 Nov 2010 15:57:28 +0000 (+0100) Subject: firewire: net: fix memory leaks X-Git-Tag: v2.6.37-rc4~13^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ee11fa8d0a84b05cefe12b0bebc05ab0ea89cd6;p=pandora-kernel.git firewire: net: fix memory leaks a) fwnet_transmit_packet_done used to poison ptask->pt_link by list_del. If fwnet_send_packet checked later whether it was responsible to clean up (in the border case that the TX soft IRQ was outpaced by the AT-req tasklet on another CPU), it missed this because ptask->pt_link was no longer shown as empty. b) If fwnet_write_complete got an rcode other than RCODE_COMPLETE, we missed to free the skb and ptask entirely. Also, count stats.tx_dropped and stats.tx_errors when rcode != 0. Signed-off-by: Stefan Richter --- Reading git-diff-tree failed