irqchip: madera: Check irq_dev before dereferencing
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Mon, 11 Dec 2017 14:11:01 +0000 (14:11 +0000)
committer강신형 <s47.kang@samsung.com>
Tue, 19 Jun 2018 07:56:52 +0000 (16:56 +0900)
commit6aa1a372a4a5cbc8e612ab6c9c626dcf453dd437
tree04a0b5b8c628a8530fcbd424568c534823324232
parent1bf5acbd78ed5c878dec2b4db0f360ecc4290904
irqchip: madera: Check irq_dev before dereferencing

We should check if irq_dev is valid before we dereference it by passing
it to dev_get_drvdata.

Change-Id: Ifc0cae729de342f4d2828af7c51b3d0b855b6342
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
drivers/irqchip/irq-madera.c