提交 16a63173 编写于 作者: A Adrian Bunk 提交者: Linus Torvalds

[PATCH] drivers/message/i2o/pci.c: fix a NULL pointer dereference

The Coverity checker spotted this obvious NULL pointer dereference.
Signed-off-by: NAdrian Bunk <bunk@stusta.de>
Acked-by: NMarkus Lidel <Markus.Lidel@shadowconnect.com>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 42aacfba
...@@ -421,8 +421,8 @@ static int __devinit i2o_pci_probe(struct pci_dev *pdev, ...@@ -421,8 +421,8 @@ static int __devinit i2o_pci_probe(struct pci_dev *pdev,
i2o_pci_free(c); i2o_pci_free(c);
free_controller: free_controller:
i2o_iop_free(c);
put_device(c->device.parent); put_device(c->device.parent);
i2o_iop_free(c);
disable: disable:
pci_disable_device(pdev); pci_disable_device(pdev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册