Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106153975
D27964.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.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
Fri, Dec 27, 6:59 AM (11 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15612026
Default Alt Text
D27964.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