diff options
author | Adrian Moreno <amorenoz@redhat.com> | 2024-12-17 12:37:39 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-12-18 19:23:04 -0800 |
commit | 5eecd85c77a254a43bde3212da8047b001745c9f (patch) | |
tree | 043c95b5335eae893f64ad79bf8e80192668215d /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
parent | 5eb70dbebf32c2fd1f2814c654ae17fc47d6e859 (diff) | |
download | linux-5eecd85c77a254a43bde3212da8047b001745c9f.tar.gz linux-5eecd85c77a254a43bde3212da8047b001745c9f.tar.bz2 linux-5eecd85c77a254a43bde3212da8047b001745c9f.zip |
psample: adjust size if rate_as_probability is set
If PSAMPLE_ATTR_SAMPLE_PROBABILITY flag is to be sent, the available
size for the packet data has to be adjusted accordingly.
Also, check the error code returned by nla_put_flag.
Fixes: 7b1b2b60c63f ("net: psample: allow using rate as probability")
Signed-off-by: Adrian Moreno <amorenoz@redhat.com>
Reviewed-by: Aaron Conole <aconole@redhat.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Link: https://patch.msgid.link/20241217113739.3929300-1-amorenoz@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions