Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146155857
D7617.id19596.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
589 B
Referenced Files
None
Subscribers
None
D7617.id19596.diff
View Options
Index: head/sys/dev/bhnd/bhndb/bhndb.c
===================================================================
--- head/sys/dev/bhnd/bhndb/bhndb.c
+++ head/sys/dev/bhnd/bhndb/bhndb.c
@@ -1728,8 +1728,9 @@
/* Adjust the window if the I/O request won't fit in the current
* target range. */
- if (addr < dwa->target ||
- (dwa->target + dwa->win->win_size) - addr < size)
+ if (addr < dwa->target ||
+ addr > dwa->target + dwa->win->win_size ||
+ (dwa->target + dwa->win->win_size) - addr < size)
{
error = bhndb_dw_set_addr(sc->dev, sc->bus_res, dwa, addr,
size);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 1, 7:27 AM (3 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29103729
Default Alt Text
D7617.id19596.diff (589 B)
Attached To
Mode
D7617: [bhndb] Fix unsigned integer underflow in dynamic register window handling.
Attached
Detach File
Event Timeline
Log In to Comment