]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/irqchip/irq-gic-v3-its-platform-msi.c
drm/omap: fix possible NULL ref issue in tiler_reserve_2d
[mirror_ubuntu-bionic-kernel.git] / drivers / irqchip / irq-gic-v3-its-platform-msi.c
index 833a90fe33aed839a81b781831027e677eef5581..8881a053c173edfdb11ad322b9b60f9b61ef57aa 100644 (file)
@@ -154,6 +154,8 @@ static void __init its_pmsi_of_init(void)
 
        for (np = of_find_matching_node(NULL, its_device_id); np;
             np = of_find_matching_node(np, its_device_id)) {
+               if (!of_device_is_available(np))
+                       continue;
                if (!of_property_read_bool(np, "msi-controller"))
                        continue;