]> git.baikalelectronics.ru Git - kernel.git/commit
Madge Ambassador ATM Adapter driver: Always release_firmware() in ucode_init() and...
authorJesper Juhl <jj@chaosbits.net>
Sun, 9 Jan 2011 11:32:38 +0000 (11:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 9 Jan 2011 23:45:48 +0000 (15:45 -0800)
commit6315f65ce43e2251bbfd093a84cd5827d027eb0e
treec7cc5931f5f5637e19892635cdf30ad2bcd8d622
parent3481beaea271ece472e48689a9ec2c1430d24b12
Madge Ambassador ATM Adapter driver: Always release_firmware() in ucode_init() and don't leak memory.

Failure to call release_firmware() will result in memory leak in
drivers/atm/ambassador.c::ucode_init().
This patch makes sure we always call release_firmware() when needed,
thus removing the leak(s).

Yes, I know checkpatch complains about this patch, but it was either that
or completely mess up the existing style, so I opted to use the existing
style and live with the checkpatch related flak.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/atm/ambassador.c