Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152620760
D50842.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
660 B
Referenced Files
None
Subscribers
None
D50842.diff
View Options
diff --git a/sys/dev/vt/hw/fb/vt_fb.c b/sys/dev/vt/hw/fb/vt_fb.c
--- a/sys/dev/vt/hw/fb/vt_fb.c
+++ b/sys/dev/vt/hw/fb/vt_fb.c
@@ -74,7 +74,7 @@
vt_fb_mem_wr2(struct fb_info *sc, uint32_t o, uint16_t v)
{
- KASSERT((o < sc->fb_size), ("Offset %#08x out of fb size", o));
+ KASSERT((o + 1 < sc->fb_size), ("Offset %#08x out of fb size", o + 1));
*(uint16_t *)(sc->fb_vbase + o) = v;
}
@@ -82,7 +82,7 @@
vt_fb_mem_wr4(struct fb_info *sc, uint32_t o, uint32_t v)
{
- KASSERT((o < sc->fb_size), ("Offset %#08x out of fb size", o));
+ KASSERT((o + 3 < sc->fb_size), ("Offset %#08x out of fb size", o + 3));
*(uint32_t *)(sc->fb_vbase + o) = v;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 17, 1:40 AM (11 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31632971
Default Alt Text
D50842.diff (660 B)
Attached To
Mode
D50842: vt_fb: fix KASSERTs
Attached
Detach File
Event Timeline
Log In to Comment