irqchip: madera: Check irq_dev before dereferencing
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Mon, 11 Dec 2017 14:11:01 +0000 (14:11 +0000)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:22:28 +0000 (20:22 +0300)
commit2323bd74c57ae56307601b22059e127ec4eca744
tree2c9aa794bb7be582074b0e9f2b3dc5b2464e2850
parentb1a8a213bba67534ef3af3072e2c2d1b81b58ef3
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