]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
bus/fsl_mc: Do not rely on caller to provide non NULL mc_io
authorDiana Craciun <diana.craciun@oss.nxp.com>
Tue, 29 Sep 2020 08:54:38 +0000 (11:54 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Nov 2020 10:08:43 +0000 (11:08 +0100)
commit9c95724b7d1ce6714b0e918bfef6781bbb32096a
treeccc2cf1a1f02cfffe8ca06b9deab5f86f89c3e88
parent59e6db9d2798c94d1d32ebdf0ed7a7bd162504a1
bus/fsl_mc: Do not rely on caller to provide non NULL mc_io

[ Upstream commit 5026cf605143e764e1785bbf9158559d17f8d260 ]

Before destroying the mc_io, check first that it was
allocated.

Reviewed-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Acked-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Signed-off-by: Diana Craciun <diana.craciun@oss.nxp.com>
Link: https://lore.kernel.org/r/20200929085441.17448-11-diana.craciun@oss.nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/bus/fsl-mc/mc-io.c