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: NEugene A. Shatokhin <dame_eugene@mail.ru> Signed-off-by: NJohn W. Linville <linville@tuxdriver.com> Reviewed-by: NBob Copeland <me@bobcopeland.com>
Showing
想要评论请 注册 或 登录