diff options
author | Jiri Pirko <jiri@nvidia.com> | 2023-10-21 14:27:02 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-10-24 02:11:53 +0300 |
commit | f862ed2d0bf0cf51c28c1a69e3c2a1558d5a2978 (patch) | |
tree | d406a76cacb5a204516cc2f0577156289957a55b /tools/net | |
parent | b7c4f5730a9fa258c8e79f6387a03f3a95c681a2 (diff) | |
download | linux-f862ed2d0bf0cf51c28c1a69e3c2a1558d5a2978.tar.xz |
genetlink: don't merge dumpit split op for different cmds into single iter
Currently, split ops of doit and dumpit are merged into a single iter
item when they are subsequent. However, there is no guarantee that the
dumpit op is for the same cmd as doit op.
Fix this by checking if cmd is the same for both.
This problem does not occur in existing families.
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://lore.kernel.org/r/20231021112711.660606-2-jiri@resnulli.us
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/net')
0 files changed, 0 insertions, 0 deletions