Re: [patch net-next] nfp: flower: fix error path during representor creation

2018-05-17 Thread David Miller
From: Jiri Pirko Date: Thu, 17 May 2018 12:06:43 +0200 > From: Jiri Pirko > > 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

Re: [patch net-next] nfp: flower: fix error path during representor creation

2018-05-17 Thread Jakub Kicinski
On Thu, 17 May 2018 12:06:43 +0200, Jiri Pirko wrote: > From: Jiri Pirko > > 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 ret

[patch net-next] nfp: flower: fix error path during representor creation

2018-05-17 Thread Jiri Pirko
From: Jiri Pirko 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 --- drive