]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
cmd640: fix kernel oops in test_irq() method
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Tue, 11 May 2010 07:08:03 +0000 (00:08 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:20:52 +0000 (10:20 -0700)
commitd3e7eb80772f1b39065906313113a892a6c65867
tree60e64534454512444b764868c705b1baebbb6f14
parent722531594f182f6976d31c5c6f7c144d4088e266
cmd640: fix kernel oops in test_irq() method

commit a9ddabc52ce3757a4331d6c1e8bf4065333cc51b upstream.

When implementing the test_iqr() method, I forgot that this driver is not an
ordinary PCI driver and also needs to support VLB variant of the chip. Moreover,
'hwif->dev' should be NULL, potentially causing oops in pci_read_config_byte().

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/ide/cmd640.c