]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[POWERPC] spufs: clear mapping pointers after last close
authorChristoph Hellwig <hch@lst.de>
Mon, 23 Apr 2007 19:08:07 +0000 (21:08 +0200)
committerArnd Bergmann <arnd@klappe.arndb.de>
Mon, 23 Apr 2007 19:18:53 +0000 (21:18 +0200)
commit43c2bbd932b66403688f3d812065d82f8fb8f4b3
treea58ad5bb76d65cc8e04f5c7dd1e55460a9cb052b
parent0887309589824fb1c3744c69a330c99c369124a0
[POWERPC] spufs: clear mapping pointers after last close

Make sure the pointers to various mappings are cleared once the last
user stopped using them.  This avoids accessing freed memory when
tearing down the gang directory aswell as optimizing away
pte invalidations if no one uses these.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
arch/powerpc/platforms/cell/spufs/context.c
arch/powerpc/platforms/cell/spufs/file.c
arch/powerpc/platforms/cell/spufs/inode.c
arch/powerpc/platforms/cell/spufs/spufs.h