rtnetlink: Move nesting cancellation rollback to proper function
authorGal Pressman <gal@nvidia.com>
Sun, 16 Jul 2023 07:24:40 +0000 (10:24 +0300)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 18 Jul 2023 13:14:05 +0000 (15:14 +0200)
commit4a59cdfd66998259061b86437b9439d186f89d5a
treef5c8f9208b9c1a920b6dd701a465eec02844ea7a
parentd3750076d4641b697da990b6aee5b096a10c4d12
rtnetlink: Move nesting cancellation rollback to proper function

Make rtnl_fill_vf() cancel the vfinfo attribute on error instead of the
inner rtnl_fill_vfinfo(), as it is the function that starts it.

Signed-off-by: Gal Pressman <gal@nvidia.com>
Link: https://lore.kernel.org/r/20230716072440.2372567-1-gal@nvidia.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/core/rtnetlink.c