From: Stefano Brivio Date: Sat, 2 Feb 2008 18:16:03 +0000 (+0100) Subject: b43legacy: fix DMA slot resource leakage X-Git-Tag: v2.6.25-rc1~518^2~2^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8dd0100ce9511e52614ecd0a6587c13ce5769c8b;p=pandora-kernel.git b43legacy: fix DMA slot resource leakage 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 Signed-off-by: Stefano Brivio Signed-off-by: John W. Linville --- Reading git-diff-tree failed