diff options
author | Ioana Ciornei <ioana.ciornei@nxp.com> | 2019-11-12 17:21:52 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-11-13 04:49:27 +0100 |
commit | 5aa4277d4368c099223bbcd3a9086f3351a12ce9 (patch) | |
tree | 67bd0afda0095b5cdf20780fe3fa5adf71d83d71 /net | |
parent | net/smc: fix refcount non-blocking connect() -part 2 (diff) | |
download | linux-5aa4277d4368c099223bbcd3a9086f3351a12ce9.tar.xz linux-5aa4277d4368c099223bbcd3a9086f3351a12ce9.zip |
dpaa2-eth: free already allocated channels on probe defer
The setup_dpio() function tries to allocate a number of channels equal
to the number of CPUs online. When there are not enough DPCON objects
already probed, the function will return EPROBE_DEFER. When this
happens, the already allocated channels are not freed. This results in
the incapacity of properly probing the next time around.
Fix this by freeing the channels on the error path.
Fixes: d7f5a9d89a55 ("dpaa2-eth: defer probe on object allocate")
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions