From: Greg Kroah-Hartman Date: Sat, 3 Feb 2024 03:47:35 +0000 (-0800) Subject: 6.7-stable patches X-Git-Tag: v6.1.77~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9974a4939cad16b78a9d97fc014663fab7f387d;p=thirdparty%2Fkernel%2Fstable-queue.git 6.7-stable patches added patches: bonding-remove-print-in-bond_verify_device_path.patch --- diff --git a/queue-6.7/bonding-remove-print-in-bond_verify_device_path.patch b/queue-6.7/bonding-remove-print-in-bond_verify_device_path.patch new file mode 100644 index 00000000000..c5a2e970ab1 --- /dev/null +++ b/queue-6.7/bonding-remove-print-in-bond_verify_device_path.patch @@ -0,0 +1,39 @@ +From 486058f42a4728053ae69ebbf78e9731d8ce6f8b Mon Sep 17 00:00:00 2001 +From: Zhengchao Shao +Date: Thu, 23 Nov 2023 09:55:15 +0800 +Subject: bonding: remove print in bond_verify_device_path + +From: Zhengchao Shao + +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@huawei.com/ + +Suggested-by: Paolo Abeni +Signed-off-by: Zhengchao Shao +Reviewed-by: Hangbin Liu +Signed-off-by: David S. Miller +Signed-off-by: Greg Kroah-Hartman +--- + 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 +@@ -2973,11 +2973,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 = BOND_VLAN_PROTO_NONE; + return tags; + } diff --git a/queue-6.7/series b/queue-6.7/series index d5d60057bfe..fcfb22307b2 100644 --- a/queue-6.7/series +++ b/queue-6.7/series @@ -169,7 +169,6 @@ rdma-ipoib-fix-error-code-return-in-ipoib_mcast_join.patch drm-panel-edp-add-override_edid_mode-quirk-for-gener.patch drm-bridge-anx7625-fix-set-hpd-irq-detect-window-to-.patch drm-amd-display-fix-tiled-display-misalignment.patch -media-renesas-vsp1-fix-references-to-pad-config.patch f2fs-fix-write-pointers-on-zoned-device-after-roll-f.patch asoc-amd-add-new-dmi-entries-for-acp5x-platform.patch drm-amd-display-initialize-all-the-dpm-level-s-stutt.patch @@ -351,3 +350,4 @@ mm-kmsan-fix-infinite-recursion-due-to-rcu-critical-section.patch revert-drm-amd-display-disable-psr-su-on-parade-0803-tcon-again.patch drm-msm-dsi-enable-runtime-pm.patch selftests-bpf-remove-flaky-test_btf_id-test.patch +bonding-remove-print-in-bond_verify_device_path.patch