diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2007-06-04 23:26:51 +1000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-06-07 11:44:39 +1000 |
commit | 877907d37da9694a34adc9dc3e2ce09400148cb5 (patch) | |
tree | 4cb8ffe949e3beeb3ccc0d58824a215e83e6f63c /scripts/export_report.pl | |
parent | ce92987baba60bc082b9eedddfaf4ae3f8435dac (diff) |
[POWERPC] spufs: Fix gang destroy leaks
Previously, closing a SPE gang that still has contexts would trigger
a WARN_ON, and leak the allocated gang.
This change fixes the problem by using the gang's reference counts to
destroy the gang instead. The gangs will persist until their last
reference (be it context or open file handle) is gone.
Also, avoid using statements with side-effects in a WARN_ON().
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'scripts/export_report.pl')
0 files changed, 0 insertions, 0 deletions