]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 May 2010 07:08:03 +0000 (00:08 -0700)
commitb45ff7f533da113cd4aea7db694930ff3257a7f8
tree3ed67e857fe0b729aed9b466ea5827e9c8e0114a
parent0119c44b5f95d382fc6996514f86fc526da9fee9
cmd640: fix kernel oops in test_irq() method

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>
drivers/ide/cmd640.c