Clamp ahci max irq's to AHCI_MAX_IRQS
authorsmh <smh@FreeBSD.org>
Sun, 21 Dec 2014 16:15:29 +0000 (16:15 +0000)
committersmh <smh@FreeBSD.org>
Sun, 21 Dec 2014 16:15:29 +0000 (16:15 +0000)
commit1bbb36e3f109ce35592c5d1cf69d2a1df36ce2d3
tree2fcce32e42b8c0bd12cad6b12fe2c56ff4931956
parent527999674a3143d81aea80f2596864e69702650c
Clamp ahci max irq's to AHCI_MAX_IRQS

This prevents the possiblity of any overruns on the statically allocated
struct irqs field.

Differential Revision: D838
MFC after: 2 weeks
X-MFC-With: r276012
Sponsored by: Multiplay
sys/dev/ahci/ahci.c