]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: siano: fix device register error path
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 10 Jun 2021 06:57:02 +0000 (08:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Jul 2021 14:15:44 +0000 (16:15 +0200)
commit2f6d707fab64ddfebfb65cc4dacfee9d19ad03a8
tree7e422eadefdb9b9a74c95c4216e4df2f78d261b6
parent5f6f52d667c7fcfd36f534e542b2c3bdaea1b5ff
media: siano: fix device register error path

[ Upstream commit 5368b1ee2939961a16e74972b69088433fc52195 ]

As reported by smatch:
drivers/media/common/siano/smsdvb-main.c:1231 smsdvb_hotplug() warn: '&client->entry' not removed from list

If an error occur at the end of the registration logic, it won't
drop the device from the list.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/common/siano/smsdvb-main.c