commit | a065784620a2b78a2bbd00e066c004644d227ea8 | [log] [tgz] |
---|---|---|
author | John W. Linville <linville@tuxdriver.com> | Fri Apr 08 15:33:12 2011 -0400 |
committer | John W. Linville <linville@tuxdriver.com> | Tue Apr 12 16:58:56 2011 -0400 |
tree | ce1bb7881fbd34d3dc65cd5da7f9b0d0cadc686e | |
parent | ba30c4a58ceb10e81dbf6bd80aeb6a4db42db8fe [diff] |
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 <dame_eugene@mail.ru> Signed-off-by: John W. Linville <linville@tuxdriver.com> Reviewed-by: Bob Copeland <me@bobcopeland.com>