From: Eugene A. Shatokhin Date: Wed, 29 Jun 2011 03:04:51 +0000 (-0400) Subject: ath5k: fix memory leak when fewer than N_PD_CURVES are in use X-Git-Tag: v3.0-rc7~41^2~22^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0b8de350be458b33248e48b2174d9af8a4c4798;p=pandora-kernel.git ath5k: fix memory leak when fewer than N_PD_CURVES are in use We would free the proper number of curves, but in the wrong slots, due to a missing level of indirection through the pdgain_idx table. It's simpler just to try to free all four slots, so do that. Cc: stable@kernel.org Signed-off-by: Bob Copeland Signed-off-by: John W. Linville --- Reading git-diff-tree failed