]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/powerpc/platforms/cell/spu_syscalls.c
[PATCH] spufs: fix module refcount race
[linux-2.6-omap-h63xx.git] / arch / powerpc / platforms / cell / spu_syscalls.c
index 91d564df944e0383d270e2ca10158cbd71ddc152..261b507a901afb1f389f51186063a9dcc2156c48 100644 (file)
@@ -40,7 +40,7 @@ asmlinkage long sys_spu_create(const char __user *name,
        struct module *owner = spufs_calls.owner;
 
        ret = -ENOSYS;
-       if (owner && try_module_get(spufs_calls.owner)) {
+       if (owner && try_module_get(owner)) {
                ret = spufs_calls.create_thread(name, flags, mode);
                module_put(owner);
        }