[bug report] of/irq: Break out msi-map lookup (again)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hello Robin Murphy,

The patch 987068fcbdb7: "of/irq: Break out msi-map lookup (again)"
from Sep 12, 2016, leads to the following static checker warning:

	drivers/of/of_pci.c:375 of_pci_map_rid()
	error: we previously assumed 'id_out' could be null (see line 372)

drivers/of/of_pci.c
   371  
   372                  if (id_out)
                            ^^^^^^
Check for NULL

   373                          *id_out = masked_rid - rid_base + out_base;
   374  
   375                  pr_debug("%pOF: %s, using mask %08x, rid-base: %08x, out-base: %08x, length: %08x, rid: %08x -> %08x\n",
   376                          np, map_name, map_mask, rid_base, out_base,
   377                          rid_len, rid, *id_out);
                                               ^^^^^^
Unchecked dereference

   378                  return 0;

regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux