]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] spufs: fix memory leak on spufs reloading
authorAkinobu Mita <mita@fixstars.com>
Mon, 23 Apr 2007 19:08:20 +0000 (21:08 +0200)
committerArnd Bergmann <arnd@klappe.arndb.de>
Mon, 23 Apr 2007 19:18:57 +0000 (21:18 +0200)
commit3f8a44be74da692b8b1237f60eb3dbd32a19e68e
tree1109e9776f52f614a198a693601d9e9ea60f715c
parent55013d5bbbbf688b3531293c65c77ca62411518d
[POWERPC] spufs: fix memory leak on spufs reloading

When SPU isolation mode enabled, isolated_loader would be
allocated by spufs_init_isolated_loader() on module_init().
But anyone do not free it.

This patch introduces spufs_exit_isolated_loader() which is
the opposite of spufs_init_isolated_loader() and called on
module_exit().

Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Akinobu Mita <mita@fixstars.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
arch/powerpc/platforms/cell/spufs/inode.c