From: John W. Linville Date: Fri, 8 Apr 2011 19:33:12 +0000 (-0400) Subject: ath5k: improve pcal error handling for ENOMEM case X-Git-Tag: v3.0-rc1~377^2~256^2^2~119 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a065784620a2b78a2bbd00e066c004644d227ea8;p=pandora-kernel.git ath5k: improve pcal error handling for ENOMEM case The ath5k driver does kmalloc allocations for pcal info in a loop. But, if one fails it was simply returning -ENOMEM without freeing already allocated memory. This patch corrects that oversight. Reported-by: Eugene A. Shatokhin Signed-off-by: John W. Linville Reviewed-by: Bob Copeland --- Reading git-diff-tree failed