]> www.infradead.org Git - users/jedix/linux-maple.git/commit
of: unittest: Add a case to test if API of_irq_parse_one() leaks refcount
authorZijun Hu <quic_zijuhu@quicinc.com>
Sun, 9 Feb 2025 12:58:54 +0000 (20:58 +0800)
committerRob Herring (Arm) <robh@kernel.org>
Mon, 24 Feb 2025 21:34:45 +0000 (15:34 -0600)
commit65f4be07ad1010f41dbe329398da881a38051c98
tree5d4797e1accaaad5d9635aa2ca9578d1e7469e33
parent6c10926fce847ab9726c33bcdb78061de58c02f3
of: unittest: Add a case to test if API of_irq_parse_one() leaks refcount

To test if of_irq_parse_one(@int_gen_dev, i, ...) will leak refcount of
@i_th_phandle.

int_gen_dev {
...
interrupts-extended = ..., <&i_th_phandle ...>, ...;
...
};

Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Link: https://lore.kernel.org/r/20250209-of_irq_fix-v2-1-93e3a2659aa7@quicinc.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
drivers/of/unittest.c