Hello Kishon Vijay Abraham I, The patch 5e8cb4033807: "PCI: endpoint: Add EP core layer to enable EP controller and EP functions" from Apr 10, 2017, leads to the following static checker warning: drivers/pci/endpoint/pci-epc-core.c:379 pci_epc_add_epf() warn: 'epc' isn't an ERR_PTR drivers/pci/endpoint/pci-epc-core.c 370 */ 371 int pci_epc_add_epf(struct pci_epc *epc, struct pci_epf *epf) 372 { 373 unsigned long flags; 374 struct device *dev = epc->dev.parent; ^^^^^^^^^^^^^^^ Dereference. 375 376 if (epf->epc) 377 return -EBUSY; 378 379 if (IS_ERR(epc)) ^^^^^^^^^^^ Can't be an error pointer or we would already have Oopsed. 380 return -EINVAL; 381 382 if (epf->func_no > epc->max_functions - 1) 383 return -EINVAL; 384 385 epf->epc = epc; 386 if (dev->of_node) { 387 of_dma_configure(&epf->dev, dev->of_node); 388 } else { 389 dma_set_coherent_mask(&epf->dev, epc->dev.coherent_dma_mask); 390 epf->dev.dma_mask = epc->dev.dma_mask; 391 } 392 393 spin_lock_irqsave(&epc->lock, flags); 394 list_add_tail(&epf->list, &epc->pci_epf); 395 spin_unlock_irqrestore(&epc->lock, flags); 396 397 return 0; regards, dan carpenter