summaryrefslogtreecommitdiff
path: root/net/smc/smc_tx.c
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2018-05-17 13:06:43 +0300
committerDavid S. Miller <davem@davemloft.net>2018-05-17 23:23:29 +0300
commit3b734ff604d32e3e1d7db877d801818967ad325f (patch)
tree94e4b4efbfe94058b2ef64c0d05b6a6b5ff5c2d9 /net/smc/smc_tx.c
parent6d9f868fc7d3b3137638895d659b986a49253a7d (diff)
downloadlinux-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