Page MenuHomeFreeBSD

D27964.diff
No OneTemporary

D27964.diff

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

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)

Event Timeline