This is a note to let you know that I've just added the patch titled bonding: remove print in bond_verify_device_path to the 5.4-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: bonding-remove-print-in-bond_verify_device_path.patch and it can be found in the queue-5.4 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 486058f42a4728053ae69ebbf78e9731d8ce6f8b Mon Sep 17 00:00:00 2001 From: Zhengchao Shao <shaozhengchao@xxxxxxxxxx> Date: Thu, 23 Nov 2023 09:55:15 +0800 Subject: bonding: remove print in bond_verify_device_path From: Zhengchao Shao <shaozhengchao@xxxxxxxxxx> commit 486058f42a4728053ae69ebbf78e9731d8ce6f8b upstream. As suggested by Paolo in link[1], if the memory allocation fails, the mm layer will emit a lot warning comprising the backtrace, so remove the print. [1] https://lore.kernel.org/all/20231118081653.1481260-1-shaozhengchao@xxxxxxxxxx/ Suggested-by: Paolo Abeni <pabeni@xxxxxxxxxx> Signed-off-by: Zhengchao Shao <shaozhengchao@xxxxxxxxxx> Reviewed-by: Hangbin Liu <liuhangbin@xxxxxxxxx> Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/net/bonding/bond_main.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c @@ -2482,11 +2482,8 @@ struct bond_vlan_tag *bond_verify_device if (start_dev == end_dev) { tags = kcalloc(level + 1, sizeof(*tags), GFP_ATOMIC); - if (!tags) { - net_err_ratelimited("%s: %s: Failed to allocate tags\n", - __func__, start_dev->name); + if (!tags) return ERR_PTR(-ENOMEM); - } tags[level].vlan_proto = VLAN_N_VID; return tags; } Patches currently in stable-queue which might be from shaozhengchao@xxxxxxxxxx are queue-5.4/netlink-fix-potential-sleeping-issue-in-mqueue_flush.patch queue-5.4/bonding-return-enomem-instead-of-bug-in-alb_upper_de.patch queue-5.4/bonding-remove-print-in-bond_verify_device_path.patch