lkml.org 
[lkml]   [2018]   [Dec]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] fs: proc: check status of register_filesystem
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.

\
 
 \ /
  Last update: 2018-12-26 07:19    [W:0.045 / U:2.672 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site