Re: [PATCH] pci: fix unterminated pci_device_id lists
- From: Greg KH <greg@xxxxxxxxx>
- Date: Wed, 12 Sep 2007 14:53:56 -0700
On Wed, Sep 12, 2007 at 03:48:49PM +0400, Alexey Dobriyan wrote:
On 9/12/07, Jeff Garzik <jeff@xxxxxxxxxx> wrote:
Kees Cook wrote:
This patch against 2.6.23-rc6 fixes a couple drivers that do not
correctly terminate their pci_device_id lists. This results in garbage
being spewed into modules.pcimap when the module happens to not have
28 NULL bytes following the table, and/or the last PCI ID is actually
truncated from the table when calculating the modules.alias PCI aliases,
cause those unfortunate device IDs to not auto-load.
Signed-off-by: Kees Cook <kees@xxxxxxxxxx>
ACK
I mut say, non-terminated PCI ids lists are constant PITA. There should be
a way to a) put it in macro[1], so that terminator automatically added, and
b) still allow #ifdef inside table like, e.g. 8139too does.
[1] or not macro, because #ifdef inside macros aren't allowed.
If you know of a way to do this in an easier manner, patches are always
gladly accepted :)
thanks,
greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- [PATCH] modpost: detect unterminated device id lists
- From: Kees Cook
- Re: [PATCH] pci: fix unterminated pci_device_id lists
- From: Andrew Morton
- [PATCH] modpost: detect unterminated device id lists
- References:
- [PATCH] pci: fix unterminated pci_device_id lists
- From: Kees Cook
- Re: [PATCH] pci: fix unterminated pci_device_id lists
- From: Jeff Garzik
- Re: [PATCH] pci: fix unterminated pci_device_id lists
- From: Alexey Dobriyan
- [PATCH] pci: fix unterminated pci_device_id lists
- Prev by Date: Re: 2.6.23-rc5 hangs on boot, apparently when initializing the EC
- Next by Date: Re: O_NOLINK for open()
- Previous by thread: Re: [PATCH] pci: fix unterminated pci_device_id lists
- Next by thread: Re: [PATCH] pci: fix unterminated pci_device_id lists
- Index(es):
Relevant Pages
|