Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/fbdev...
[firefly-linux-kernel-4.4.55.git] / fs / proc / inode.c
index 74b48cfa1bb2d4be464180b6913c6cd28462eb5f..7ed72d6c1c6fc4d2c528e7c5578c2836a2875914 100644 (file)
@@ -319,7 +319,7 @@ static int proc_reg_open(struct inode *inode, struct file *file)
        if (!pde->proc_fops) {
                spin_unlock(&pde->pde_unload_lock);
                kfree(pdeo);
-               return -EINVAL;
+               return -ENOENT;
        }
        pde->pde_users++;
        open = pde->proc_fops->open;