From: Adrian Bunk Date: Sat, 26 Nov 2005 23:37:05 +0000 (+0100) Subject: [PATCH] drivers/message/i2o/pci.c: fix a NULL pointer dereference X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=16a631733135a625dd8bc83207553aaf34c0a72c;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [PATCH] drivers/message/i2o/pci.c: fix a NULL pointer dereference The Coverity checker spotted this obvious NULL pointer dereference. Signed-off-by: Adrian Bunk Acked-by: Markus Lidel Signed-off-by: Linus Torvalds --- diff --git a/drivers/message/i2o/pci.c b/drivers/message/i2o/pci.c index 66c03e88257..81ef306cb12 100644 --- a/drivers/message/i2o/pci.c +++ b/drivers/message/i2o/pci.c @@ -421,8 +421,8 @@ static int __devinit i2o_pci_probe(struct pci_dev *pdev, i2o_pci_free(c); free_controller: - i2o_iop_free(c); put_device(c->device.parent); + i2o_iop_free(c); disable: pci_disable_device(pdev);