power: supply: smb347-charger: Make smb347_set_writable() IRQ-safe
[linux-2.6-block.git] / kernel / usermode_driver.c
index bb7bb3b478abfa5c6dbb81466125858db1f90d5b..9dae1f6487136a3b9132c6f18c5c2aba2a028fc4 100644 (file)
@@ -26,7 +26,7 @@ static struct vfsmount *blob_to_mnt(const void *data, size_t len, const char *na
        if (IS_ERR(mnt))
                return mnt;
 
-       file = file_open_root(mnt->mnt_root, mnt, name, O_CREAT | O_WRONLY, 0700);
+       file = file_open_root_mnt(mnt, name, O_CREAT | O_WRONLY, 0700);
        if (IS_ERR(file)) {
                mntput(mnt);
                return ERR_CAST(file);