linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* drivers/scsi/ahci.c:ahci_interrupt(): NULL pointer dereference
@ 2006-03-10 19:34 Adrian Bunk
  2006-03-11  3:47 ` [PATCH] ahci: fix NULL pointer dereference detected by Coverity Tejun Heo
  0 siblings, 1 reply; 3+ messages in thread
From: Adrian Bunk @ 2006-03-10 19:34 UTC (permalink / raw)
  To: jgarzik; +Cc: linux-ide, linux-kernel

The Coverity checker spotted this bug (note the ap dereference)

<--  snip  -->

...
                if (ap) {
...
                } else {
                        VPRINTK("port %u (no irq)\n", i);
                        if (ata_ratelimit()) {
                                struct pci_dev *pdev =
                                        to_pci_dev(ap->host_set->dev);
...

<--  snip  -->


cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-03-12  0:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-10 19:34 drivers/scsi/ahci.c:ahci_interrupt(): NULL pointer dereference Adrian Bunk
2006-03-11  3:47 ` [PATCH] ahci: fix NULL pointer dereference detected by Coverity Tejun Heo
2006-03-12  0:10   ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).