Bug 32712
Summary: | Memory kcalloc'ed in ath5k_eeprom_convert_pcal_info_*() is not always kfree'd | ||
---|---|---|---|
Product: | Drivers | Reporter: | Eugene A. Shatokhin (eugene.shatokhin) |
Component: | network-wireless | Assignee: | drivers_network-wireless (drivers_network-wireless) |
Status: | CLOSED CODE_FIX | ||
Severity: | normal | CC: | linville |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.39-rc1 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
Eugene A. Shatokhin
2011-04-05 14:10:53 UTC
This is queued for 2.6.40... commit a065784620a2b78a2bbd00e066c004644d227ea8 Author: John W. Linville <linville@tuxdriver.com> Date: Fri Apr 8 15:33:12 2011 -0400 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> |