diff options
author | Jiri Pirko <jiri@mellanox.com> | 2018-05-17 13:06:43 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-05-17 23:23:29 +0300 |
commit | 3b734ff604d32e3e1d7db877d801818967ad325f (patch) | |
tree | 94e4b4efbfe94058b2ef64c0d05b6a6b5ff5c2d9 /net/smc/smc_tx.c | |
parent | 6d9f868fc7d3b3137638895d659b986a49253a7d (diff) | |
download | linux-3b734ff604d32e3e1d7db877d801818967ad325f.tar.xz |
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>
Diffstat (limited to 'net/smc/smc_tx.c')
0 files changed, 0 insertions, 0 deletions