mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
5aa4277d43
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:
|
||
---|---|---|
.. | ||
dpaa2-eth-debugfs.c | ||
dpaa2-eth-debugfs.h | ||
dpaa2-eth-trace.h | ||
dpaa2-eth.c | ||
dpaa2-eth.h | ||
dpaa2-ethtool.c | ||
dpaa2-ptp.c | ||
dpaa2-ptp.h | ||
dpkg.h | ||
dpni-cmd.h | ||
dpni.c | ||
dpni.h | ||
dprtc-cmd.h | ||
dprtc.c | ||
dprtc.h | ||
Kconfig | ||
Makefile |