Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F3305755
x86 MSI off by one
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
jhb
Apr 11 2018, 10:31 PM
2018-04-11 22:31:12 (UTC+0)
Size
962 B
Referenced Files
None
Subscribers
None
x86 MSI off by one
View Options
Index: msi.c
===================================================================
--- msi.c (revision 332419)
+++ msi.c (working copy)
@@ -404,7 +404,7 @@
/* Do we need to create some new sources? */
if (cnt < count) {
/* If we would exceed the max, give up. */
- if (i + (count - cnt) > FIRST_MSI_INT + NUM_MSI_INTS) {
+ if (i + (count - cnt) >= FIRST_MSI_INT + NUM_MSI_INTS) {
mtx_unlock(&msi_lock);
free(mirqs, M_MSI);
return (ENXIO);
@@ -645,7 +645,7 @@
/* Do we need to create a new source? */
if (msi == NULL) {
/* If we would exceed the max, give up. */
- if (i + 1 > FIRST_MSI_INT + NUM_MSI_INTS) {
+ if (i + 1 >= FIRST_MSI_INT + NUM_MSI_INTS) {
mtx_unlock(&msi_lock);
return (ENXIO);
}
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1342413
Default Alt Text
x86 MSI off by one (962 B)
Attached To
Mode
P165 x86 MSI off by one
Attached
Detach File
Event Timeline
Log In to Comment