Patch "nfsd: Fix error return code in nfsd_file_cache_init()" has been added to the 5.10-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    nfsd: Fix error return code in nfsd_file_cache_init()

to the 5.10-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     nfsd-fix-error-return-code-in-nfsd_file_cache_init.patch
and it can be found in the queue-5.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit d8792712e0a3b4dc4fa3c8080c8425f9a6594c03
Author: Huang Guobin <huangguobin4@xxxxxxxxxx>
Date:   Wed Nov 25 03:39:33 2020 -0500

    nfsd: Fix error return code in nfsd_file_cache_init()
    
    [ Upstream commit 231307df246eb29f30092836524ebb1fcb8f5b25 ]
    
    Fix to return PTR_ERR() error code from the error handling case instead of
    0 in function nfsd_file_cache_init(), as done elsewhere in this function.
    
    Fixes: 65294c1f2c5e7("nfsd: add a new struct file caching facility to nfsd")
    Signed-off-by: Huang Guobin <huangguobin4@xxxxxxxxxx>
    Signed-off-by: Chuck Lever <chuck.lever@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/fs/nfsd/filecache.c b/fs/nfsd/filecache.c
index e30e1ddc1aceb..d0748ff04b92f 100644
--- a/fs/nfsd/filecache.c
+++ b/fs/nfsd/filecache.c
@@ -684,6 +684,7 @@ nfsd_file_cache_init(void)
 	if (IS_ERR(nfsd_file_fsnotify_group)) {
 		pr_err("nfsd: unable to create fsnotify group: %ld\n",
 			PTR_ERR(nfsd_file_fsnotify_group));
+		ret = PTR_ERR(nfsd_file_fsnotify_group);
 		nfsd_file_fsnotify_group = NULL;
 		goto out_notifier;
 	}




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux