do not truncate irq number for icom adapter
irq values are u32, not u8. Large irq numbers will be truncated, free_irq may free a different irq. Remove incorrectly sized struct member and use the one from pci_dev. Signed-off-by: Olaf Hering <olaf@aepfle.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
91fcd412e9
commit
179fb0c726
@@ -258,7 +258,6 @@ struct icom_port {
|
||||
struct icom_adapter {
|
||||
void __iomem * base_addr;
|
||||
unsigned long base_addr_pci;
|
||||
unsigned char irq_number;
|
||||
struct pci_dev *pci_dev;
|
||||
struct icom_port port_info[4];
|
||||
int index;
|
||||
|
Reference in New Issue
Block a user