From: Jiri Pirko <j...@resnulli.us> Date: Wed, 8 Feb 2017 10:39:16 +0100
> From: Jiri Pirko <j...@mellanox.com> > > No rollback is needed since the chain is in consistent state and > mlxsw_afa_block_destroy() will take care of putting it away. So remove > the one we have now which is wrong. Also move the set of 'finished' flag > to the beginning of the function, because the block is certainly unusable > for future action addition no matter if the function succeeds or not. > > Reported-by: Dan Carpenter <dan.carpen...@oracle.com> > Fixes: 4cda7d8d7098 ("mlxsw: core: Introduce flexible actions support") > Signed-off-by: Jiri Pirko <j...@mellanox.com> > Acked-by: Ido Schimmel <ido...@mellanox.com> Applied.