mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-04 17:15:50 +00:00
Fix buffer overflow in Marvell PCI/PCIe driver
Buffer overflow occured when more than one MSI was allocated. Submitted by: Wojciech Macek <wma@semihalf.com> Obtained from: Semihalf
This commit is contained in:
parent
2b468ebac3
commit
8948956770
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=275583
@ -1171,7 +1171,7 @@ mv_pcib_alloc_msi(device_t dev, device_t child, int count,
|
||||
|
||||
for (i = start; i < start + count; i++) {
|
||||
setbit(&sc->sc_msi_bitmap, i);
|
||||
irqs[i] = MSI_IRQ + i;
|
||||
*irqs++ = MSI_IRQ + i;
|
||||
}
|
||||
debugf("%s: start: %x count: %x\n", __func__, start, count);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user