Preserve the error code if esw_add_restore_rule() fails.  Don't return
success.
Fixes: 6702782845a5 ("net/mlx5e: TC, Set CT miss to the specific ct action instance")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
 
        esw = priv->mdev->priv.eswitch;
        attr->act_id_restore_rule = esw_add_restore_rule(esw, *act_miss_mapping);
-       if (IS_ERR(attr->act_id_restore_rule))
+       if (IS_ERR(attr->act_id_restore_rule)) {
+               err = PTR_ERR(attr->act_id_restore_rule);
                goto err_rule;
+       }
 
        return 0;