Patch "ovl: ovl_parse_param_lowerdir: Add missed '\n' for pr_err" has been added to the 6.6-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

    ovl: ovl_parse_param_lowerdir: Add missed '\n' for pr_err

to the 6.6-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:
     ovl-ovl_parse_param_lowerdir-add-missed-n-for-pr_err.patch
and it can be found in the queue-6.6 subdirectory.

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



commit d8f7f84d7518bc604f73fc6de639a115f28dc765
Author: Zhihao Cheng <chengzhihao1@xxxxxxxxxx>
Date:   Fri Jul 5 09:15:10 2024 +0800

    ovl: ovl_parse_param_lowerdir: Add missed '\n' for pr_err
    
    [ Upstream commit 441e36ef5b347d9ab4f54f7b54853266be687556 ]
    
    Add '\n' for pr_err in function ovl_parse_param_lowerdir(), which
    ensures that error message is displayed at once.
    
    Fixes: b36a5780cb44 ("ovl: modify layer parameter parsing")
    Signed-off-by: Zhihao Cheng <chengzhihao1@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20240705011510.794025-4-chengzhihao1@xxxxxxxxxx
    Signed-off-by: Christian Brauner <brauner@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/fs/overlayfs/params.c b/fs/overlayfs/params.c
index 39919a10ce1c9..0f3768cf9e871 100644
--- a/fs/overlayfs/params.c
+++ b/fs/overlayfs/params.c
@@ -453,7 +453,7 @@ static int ovl_parse_param_lowerdir(const char *name, struct fs_context *fc)
 		return 0;
 
 	if (*name == ':') {
-		pr_err("cannot append lower layer");
+		pr_err("cannot append lower layer\n");
 		return -EINVAL;
 	}
 
@@ -497,7 +497,7 @@ static int ovl_parse_param_lowerdir(const char *name, struct fs_context *fc)
 			 * there are no data layers.
 			 */
 			if (ctx->nr_data > 0) {
-				pr_err("regular lower layers cannot follow data lower layers");
+				pr_err("regular lower layers cannot follow data lower layers\n");
 				goto out_err;
 			}
 




[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