diff options
| author | Jeremy Kerr <[email protected]> | 2007-06-04 23:26:51 +1000 |
|---|---|---|
| committer | Paul Mackerras <[email protected]> | 2007-06-07 11:44:39 +1000 |
| commit | 877907d37da9694a34adc9dc3e2ce09400148cb5 (patch) | |
| tree | 4cb8ffe949e3beeb3ccc0d58824a215e83e6f63c /include/linux | |
| 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 <[email protected]>
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Paul Mackerras <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions