]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.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)
committerStefan Bader <stefan.bader@canonical.com>
Thu, 10 Dec 2020 11:02:54 +0000 (12:02 +0100)
commit9c9bdaead3b5b8fcdcaf32ca8775292c93662692
tree8f06684e76acecbc836a4fbc1501a7e8900f5836
parentf0fae9347f7fa28c9263d155efee4c66cf71521c
bus/fsl_mc: Do not rely on caller to provide non NULL mc_io

BugLink: https://bugs.launchpad.net/bugs/1904450
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: William Breathitt Gray <william.gray@canonical.com>
drivers/bus/fsl-mc/mc-io.c