1
0
Fork 0
alistair23-linux/drivers/net/ethernet/freescale/dpaa2
Ioana Ciornei 5aa4277d43 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: d7f5a9d89a ("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>
2019-11-12 19:49:27 -08:00
..
Kconfig dpaa2-ptp: reuse ptp_qoriq driver 2019-06-15 13:43:06 -07:00
Makefile dpaa2-eth: add debugfs statistics 2019-01-19 10:28:43 -08:00
dpaa2-eth-debugfs.c dpaa2: no need to check return value of debugfs_create functions 2019-08-10 15:25:48 -07:00
dpaa2-eth-debugfs.h dpaa2: no need to check return value of debugfs_create functions 2019-08-10 15:25:48 -07:00
dpaa2-eth-trace.h
dpaa2-eth.c dpaa2-eth: free already allocated channels on probe defer 2019-11-12 19:49:27 -08:00
dpaa2-eth.h dpaa2-eth: Add pause frame support 2019-08-29 16:52:12 -07:00
dpaa2-ethtool.c dpaa2-eth: Add new DPNI statistics counters 2019-09-05 00:24:06 +02:00
dpaa2-ptp.c dpaa2-ptp: add interrupt support 2019-06-15 13:43:06 -07:00
dpaa2-ptp.h net: dpaa2: Use the correct style for SPDX License Identifier 2019-10-28 13:40:17 -07:00
dpkg.h
dpni-cmd.h dpaa2-eth: Add pause frame support 2019-08-29 16:52:12 -07:00
dpni.c dpaa2-eth: Add new DPNI statistics counters 2019-09-05 00:24:06 +02:00
dpni.h dpaa2-eth: add irq for the dpmac connect/disconnect event 2019-10-17 15:27:29 -04:00
dprtc-cmd.h net: dpaa2: Use the correct style for SPDX License Identifier 2019-10-28 13:40:17 -07:00
dprtc.c dpaa2-ptp: add interrupt support 2019-06-15 13:43:06 -07:00
dprtc.h net: dpaa2: Use the correct style for SPDX License Identifier 2019-10-28 13:40:17 -07:00