MIPS: Fix a reference leak bug in ip22_check_gio()

[ Upstream commit 680ad315ca ]

If gio_device_register fails, gio_dev_put() is required to
drop the gio_dev device reference.

Fixes: e84de0c619 ("MIPS: GIO bus support for SGI IP22/28")
Signed-off-by: Haoxiang Li <haoxiang_li2024@163.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Haoxiang Li 2025-12-04 18:36:18 +08:00 • committed by Greg Kroah-Hartman
commit 548e158dbf