Re: [PATCH 24/20] sysfs: In sysfs_add_one fail if the targe directory has been removed.

Kay Sievers
2009-05-23T21:30:12Z

On Sat, May 23, 2009 at 22:13, Eric W. Biederman <ebiederm@xmission.com> wrote:
> From: Eric W. Biederman <ebiederm@xmission.com>
>
> If a bug in the upper layers results in someone attempting to add
> to a sysfs directory that has already been removed, warn about it
> and fail.
>
> I don't believe this has ever happened, and it certainly never should
> happen, but be strict to avoid errors creeping in.
>
> Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com>

Sounds like a good idea.

Acked-by: Kay Sievers <kay.sievers@vrfy.org>

Thanks,
Kay