]> git.karo-electronics.de Git - karo-tx-linux.git/commit
b43: Fix dma-slot resource leakage
authorMichael Buesch <mb@bu3sch.de>
Fri, 25 Jan 2008 11:20:20 +0000 (12:20 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 8 Feb 2008 19:46:28 +0000 (11:46 -0800)
commita30954e2544519c8920c04b46f8300ec6179618f
tree681be0c872f809c1f74afc5bf0716cfa08fe621a
parent2e892f92fe8b48824cf647e812d7fac1c289a854
b43: 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.

Signed-off-by: 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/b43/dma.c