Re: + procfs-return-enoent-on-opening-a-being-removed-proc-entry.patchadded to -mm tree

From: Alexey Dobriyan
Date: Wed Jul 06 2011 - 07:22:49 EST


On Tue, Jul 5, 2011 at 11:38 PM, <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:

> --- a/fs/proc/inode.c~procfs-return-enoent-on-opening-a-being-removed-proc-entry
> +++ a/fs/proc/inode.c
> @@ -321,7 +321,7 @@ static int proc_reg_open(struct inode *i
>        if (!pde->proc_fops) {
>                spin_unlock(&pde->pde_unload_lock);
>                kfree(pdeo);
> -               return -EINVAL;
> +               return -ENOENT;

Yeah, this makes more sense.
Acked-by: Alexey Dobriyan <adobriyan@xxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/