soc: fsl: dpio: cleanup the cpu array on dpaa2_io_down
authorIoana Ciornei <ioana.ciornei@nxp.com>
Tue, 4 Dec 2018 11:20:27 +0000 (11:20 +0000)
committerLi Yang <leoyang.li@nxp.com>
Tue, 8 Jan 2019 20:15:36 +0000 (14:15 -0600)
commite181a569d8e52d5a5c91cf2ddc3ebcfb81163887
treea7787d8d5a4e5e03a11aa6904ac0a468e686d896
parentbfeffd155283772bbe78c6a05dec7c0128ee500c
soc: fsl: dpio: cleanup the cpu array on dpaa2_io_down

The dpio_by_cpu array should not contain a reference to a freed dpaa2_io
object. This patch adds the necessary cleanup in dpaa2_io_down.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: Li Yang <leoyang.li@nxp.com>
drivers/soc/fsl/dpio/dpio-service.c