Centos-kernel-stream-9/net/psample
Adrian Moreno e6c995286e net: psample: fix flag being set in wrong skb
JIRA: https://issues.redhat.com/browse/RHEL-31876
Upstream-Status: net-next.git

commit 8341eee81c794db0d8dd503c2b0ea2f55eba7334
Author: Adrian Moreno <amorenoz@redhat.com>
Date:   Wed Jul 10 19:10:04 2024 +0200

    net: psample: fix flag being set in wrong skb

    A typo makes PSAMPLE_ATTR_SAMPLE_RATE netlink flag be added to the wrong
    sk_buff.

    Fix the error and make the input sk_buff pointer "const" so that it
    doesn't happen again.

Acked-by: Eelco Chaudron <echaudro@redhat.com>
Fixes: 7b1b2b60c63f ("net: psample: allow using rate as probability")
Signed-off-by: Adrian Moreno <amorenoz@redhat.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Antoine Tenart <atenart@kernel.org>
Link: https://patch.msgid.link/20240710171004.2164034-1-amorenoz@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

Signed-off-by: Adrian Moreno <amorenoz@redhat.com>
2024-07-12 10:44:49 +02:00
..
Kconfig net: remove redundant 'depends on NET' 2021-01-27 17:04:12 -08:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
psample.c net: psample: fix flag being set in wrong skb 2024-07-12 10:44:49 +02:00