Introduce path_put()
[sfrench/cifs-2.6.git] / fs / block_dev.c
index 5f4721fdbdb6f647d0ebf28e69978a20b0b5649a..67fe72ce6ac7b0f2795a15cb17ae67f25244de67 100644 (file)
@@ -1409,7 +1409,7 @@ struct block_device *lookup_bdev(const char *path)
        if (!bdev)
                goto fail;
 out:
-       path_release(&nd);
+       path_put(&nd.path);
        return bdev;
 fail:
        bdev = ERR_PTR(error);