netdev
[Top] [All Lists]

Bug in de4x5 driver

To: davies@xxxxxxxxxxxxxxxxxxx
Subject: Bug in de4x5 driver
From: Nikita Schmidt <cetus@xxxxxxxxxxxxxxx>
Date: Sun, 4 Feb 2001 17:32:00 +0000
Cc: netdev@xxxxxxxxxxx
Sender: owner-netdev@xxxxxxxxxxx
User-agent: Mutt/1.0.1i
Hello,

I came across a bug in the de4x5 driver for Linux 2.4.1, which causes
segfault during initialisation.  In srom_search(), the driver walks the
device list attached to a PCI bus and eventually finds the list head,
which is contained in struct pci_bus, not pci_dev.  Then, pci_dev_b()
obviously returns nonsense, which eventually results in illegal memory
reference.

This bug only manifests itself when the network adapter is not on the PCI
bus 0.

I attach a patch that works for me.

Thank you,
Nikita

Attachment: de4x5.diff
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>
  • Bug in de4x5 driver, Nikita Schmidt <=