net/sfc: fix error path inconsistency
authorIvan Malov <ivan.malov@oktetlabs.ru>
Fri, 26 Mar 2021 09:39:27 +0000 (12:39 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 30 Mar 2021 14:13:44 +0000 (16:13 +0200)
commit85a9c42499fa97b9bee12a95a8477d34cec277ec
tree71d4f11bf533b2aee62bafb5c4a6a6ef4a3bd6dc
parente66716d52efb09b642b7160cc3aed4d503c5bf3e
net/sfc: fix error path inconsistency

At the fail label, there's a statement to set general errno and
error message. However, before the label is reached, a custom
error message can be set by the code which parses actions.
This custom (action-specific) message, when present,
must not be replaced by the general one.

Fixes: 662286ae61d2 ("net/sfc: add actions parsing stub to MAE backend")
Cc: stable@dpdk.org
Signed-off-by: Ivan Malov <ivan.malov@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Reviewed-by: Andy Moreton <amoreton@xilinx.com>
drivers/net/sfc/sfc_mae.c