]> git.karo-electronics.de Git - karo-tx-linux.git/commit
b43legacy: fix DMA slot resource leakage
authorStefano Brivio <stefano.brivio@polimi.it>
Fri, 25 Jan 2008 13:32:00 +0000 (14:32 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 8 Feb 2008 19:46:28 +0000 (11:46 -0800)
commit3ecd7e88c999f6c73694c30359c4d084c5ab90be
tree4a72e970c53b1eb976f3e5068240df0d7b84bb7d
parent9c5149b9f241dcae61b9a20653b26d10b4738f24
b43legacy: fix DMA slot resource leakage

patch 8dd0100ce9511e52614ecd0a6587c13ce5769c8b in mainline.

This fixes four resource leakages.
In any error path we must deallocate the DMA frame slots we
previously allocated by request_slot().
This is done by storing the ring pointers before doing any ring
allocation and restoring the old pointers in case of an error.

This patch by Michael Buesch has been ported to b43legacy.

Cc: Michael Buesch <mb@bu3sch.de>
Signed-off-by: Stefano Brivio <stefano.brivio@polimi.it>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/b43legacy/dma.c