]> git.ipfire.org Git - thirdparty/linux.git/commit
MIPS: Fix a reference leak bug in ip22_check_gio()
authorHaoxiang Li <haoxiang_li2024@163.com>
Thu, 4 Dec 2025 10:36:18 +0000 (18:36 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 15 Dec 2025 15:11:14 +0000 (16:11 +0100)
commit680ad315caaa2860df411cb378bf3614d96c7648
tree51b140208fb4e250e91ffaaac7dcb1569d56eb2c
parentbd94fbe8b55f38c24a63cca2854ff74b62780d77
MIPS: Fix a reference leak bug in ip22_check_gio()

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

Fixes: e84de0c61905 ("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>
arch/mips/sgi-ip22/ip22-gio.c