linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / drivers / infiniband / core / uverbs_mem.c
index b543177..a945edd 100644 (file)
@@ -212,10 +212,8 @@ void ib_umem_release_on_close(struct ib_device *dev, struct ib_umem *umem)
         */
 
        work = kmalloc(sizeof *work, GFP_KERNEL);
-       if (!work) {
-               mmput(mm);
+       if (!work)
                return;
-       }
 
        INIT_WORK(&work->work, ib_umem_account, work);
        work->mm   = mm;