Skip to content
Commit 21a9acc1 authored by Dongliang Mu's avatar Dongliang Mu Committed by Bartosz Golaszewski
Browse files

gpio: tqmx86: fix uninitialized variable girq

The commit 92461060 ("gpio: tpmx86: Move PM device over to
irq domain") adds a dereference of girq that may be uninitialized.

Fix this by moving irq_domain_set_pm_device into if true branch
as suggested by Marc Zyngier.

Fixes: 92461060

 ("gpio: tpmx86: Move PM device over to irq domain")
Suggested-by: default avatarMarc Zyngier <maz@kernel.org>
Signed-off-by: default avatarDongliang Mu <mudongliangabcd@gmail.com>
Acked-by: default avatarMarc Zyngier <maz@kernel.org>
Signed-off-by: default avatarBartosz Golaszewski <brgl@bgdev.pl>
parent ab637d48
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment