commit | 3b734ff604d32e3e1d7db877d801818967ad325f | [log] [tgz] |
---|---|---|
author | Jiri Pirko <jiri@mellanox.com> | Thu May 17 12:06:43 2018 +0200 |
committer | David S. Miller <davem@davemloft.net> | Thu May 17 16:23:29 2018 -0400 |
tree | 94e4b4efbfe94058b2ef64c0d05b6a6b5ff5c2d9 | |
parent | 6d9f868fc7d3b3137638895d659b986a49253a7d [diff] |
nfp: flower: fix error path during representor creation Don't store repr pointer to reprs array until the representor is successfully created. This avoids message about "representor destruction" even when it was never created. Also it cleans-up the flow. Also, check return value after port alloc. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>