Re: [PATCH] nfsd: don't ignore the return code of svc_proc_register()
From: cel
Date: Thu Feb 06 2025 - 13:41:49 EST
From: Chuck Lever <chuck.lever@xxxxxxxxxx>
On Thu, 06 Feb 2025 13:12:13 -0500, Jeff Layton wrote:
> Currently, nfsd_proc_stat_init() ignores the return value of
> svc_proc_register(). If the procfile creation fails, then the kernel
> will WARN when it tries to remove the entry later.
>
> Fix nfsd_proc_stat_init() to return the same type of pointer as
> svc_proc_register(), and fix up nfsd_net_init() to check that and fail
> the nfsd_net construction if it occurs.
>
> [...]
Applied to nfsd-testing, thanks!
Added Cc: stable # v6.9
[1/1] nfsd: don't ignore the return code of svc_proc_register()
commit: 312aef1c1520c10cf035e27c0b0229bea71f0c68
--
Chuck Lever