Re: sysfs: write returns ENOMEM?

Andrew Morton
2005-08-23T08:30:58Z

Pekka Enberg <penberg@gmail.com> wrote:
>
> @@ -310,6 +310,8 @@ ssize_t vfs_write(struct file *file, con
> }
> }
>
> + if (ret == -ENOMEM)
> + ret = -ENOBUFS;
> return ret;
> }
>

That's lame. It'd be better to hunt down all the -ENOMEMs and fix them up.