Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163641425
D27964.id81900.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
761 B
Referenced Files
None
Subscribers
None
D27964.id81900.diff
View Options
diff --git a/sys/dev/mpr/mpr_user.c b/sys/dev/mpr/mpr_user.c
--- a/sys/dev/mpr/mpr_user.c
+++ b/sys/dev/mpr/mpr_user.c
@@ -2226,7 +2226,7 @@
if (bus != 0)
return (EINVAL);
- if (target > sc->max_devices) {
+ if (target >= sc->max_devices) {
mpr_dprint(sc, MPR_XINFO, "Target ID is out of range "
"for Bus/Target to DevHandle mapping.");
return (EINVAL);
diff --git a/sys/dev/mps/mps_user.c b/sys/dev/mps/mps_user.c
--- a/sys/dev/mps/mps_user.c
+++ b/sys/dev/mps/mps_user.c
@@ -2128,7 +2128,7 @@
if (bus != 0)
return (EINVAL);
- if (target > sc->max_devices) {
+ if (target >= sc->max_devices) {
mps_dprint(sc, MPS_FAULT, "Target ID is out of range "
"for Bus/Target to DevHandle mapping.");
return (EINVAL);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jul 26, 2:44 AM (18 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35510383
Default Alt Text
D27964.id81900.diff (761 B)
Attached To
Mode
D27964: mpr, mps: Fix an off-by-one bug in the BTDH_MAPPING ioctl
Attached
Detach File
Event Timeline
Log In to Comment