diff options
author | Christoph Hellwig <hch@lst.de> | 2007-04-23 21:08:07 +0200 |
---|---|---|
committer | Arnd Bergmann <arnd@klappe.arndb.de> | 2007-04-23 21:18:53 +0200 |
commit | 43c2bbd932b66403688f3d812065d82f8fb8f4b3 (patch) | |
tree | a58ad5bb76d65cc8e04f5c7dd1e55460a9cb052b /arch/powerpc/platforms/cell/spufs/inode.c | |
parent | 0887309589824fb1c3744c69a330c99c369124a0 (diff) | |
download | kernel_samsung_smdk4412-43c2bbd932b66403688f3d812065d82f8fb8f4b3.tar.gz kernel_samsung_smdk4412-43c2bbd932b66403688f3d812065d82f8fb8f4b3.tar.bz2 kernel_samsung_smdk4412-43c2bbd932b66403688f3d812065d82f8fb8f4b3.zip |
[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>
Diffstat (limited to 'arch/powerpc/platforms/cell/spufs/inode.c')
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/inode.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/inode.c b/arch/powerpc/platforms/cell/spufs/inode.c index e3f4ee97c91..423596a6b99 100644 --- a/arch/powerpc/platforms/cell/spufs/inode.c +++ b/arch/powerpc/platforms/cell/spufs/inode.c @@ -54,6 +54,7 @@ spufs_alloc_inode(struct super_block *sb) ei->i_gang = NULL; ei->i_ctx = NULL; + ei->i_openers = 0; return &ei->vfs_inode; } |