[Cbe-oss-dev] [PATCH 2:10] spufs: fix freeing of spu switch log
Luke Browning
lukebr at linux.vnet.ibm.com
Fri May 23 06:09:12 EST 2008
Fix freeing of spu switch log
Signed-off-by: Luke Browning <lukebrowning at us.ibm.com>
---
Index: linux-2.6.25/arch/powerpc/platforms/cell/spufs/context.c
===================================================================
--- linux-2.6.25.orig/arch/powerpc/platforms/cell/spufs/context.c
+++ linux-2.6.25/arch/powerpc/platforms/cell/spufs/context.c
@@ -89,7 +89,8 @@ void destroy_spu_context(struct kref *kr
kref_put(ctx->prof_priv_kref, ctx->prof_priv_release);
BUG_ON(!list_empty(&ctx->rq));
atomic_dec(&nr_spu_contexts);
- kfree(ctx->switch_log);
+ if (ctx->switch_log)
+ kfree(ctx->switch_log);
kfree(ctx);
}
More information about the cbe-oss-dev
mailing list