From: Matt Carlson Date: Sat, 5 Jun 2010 17:24:32 +0000 (+0000) Subject: tg3: Fix a memory leak on 5717+ devices X-Git-Tag: v2.6.36-rc1~571^2~642 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b28f6428af279ffb9e97ee00486a29498b7fcfdc;p=pandora-kernel.git tg3: Fix a memory leak on 5717+ devices The rx resources for MSI-X interrupt vector 0 were not being freed correctly. This happens because the teardown loop continue's to the next loop iteration if it detects the tx ring for that vector is not setup, thus bypassing the rx teardown code. This patch moves the call to tg3_rx_prodring_free() earlier in the loop. Signed-off-by: Matt Carlson Signed-off-by: Michael Chan Signed-off-by: David S. Miller --- Reading git-diff-tree failed