diff options
| author | Adrian Moreno <[email protected]> | 2024-12-17 11:37:39 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-12-19 03:23:04 +0000 |
| commit | 5eecd85c77a254a43bde3212da8047b001745c9f (patch) | |
| tree | 043c95b5335eae893f64ad79bf8e80192668215d /fs/xfs/xfs_exchrange.c | |
| parent | netdev-genl: avoid empty messages in queue dump (diff) | |
| download | kernel-5eecd85c77a254a43bde3212da8047b001745c9f.tar.gz kernel-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 <[email protected]>
Reviewed-by: Aaron Conole <[email protected]>
Reviewed-by: Ido Schimmel <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'fs/xfs/xfs_exchrange.c')
0 files changed, 0 insertions, 0 deletions
