Re: [PATCH] fs: proc: check status of register_filesystem

Alexey Dobriyan
2018-12-26T06:19:02Z

On Tue, Dec 25, 2018 at 09:06:40PM -0600, Kangjie Lu wrote:
> register_filesystem() could fail. The fix issues an error message if it
> fails.

> - register_filesystem(&proc_fs_type);
> + if (register_filesystem(&proc_fs_type))
> + pr_err("failed to register the filesystem.\n");

No, register_filesystem() should do it.