Fixes drivers that do not correctly terminate their *_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, causing those unfortunate device IDs to not auto-load.
Signed-off-by: Kees Cook <kees@xxxxxxxxxx>
---
Re-send, using recommended list termination code-style.
Diff is against 2.6.23-rc6.