Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103047874
D26214.id76285.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D26214.id76285.diff
View Options
Index: sys/dev/fb/fbd.c
===================================================================
--- sys/dev/fb/fbd.c
+++ sys/dev/fb/fbd.c
@@ -176,7 +176,7 @@
if (info->fb_flags & FB_FLAG_NOMMAP)
return (ENODEV);
- if (offset >= 0 && offset < info->fb_size) {
+ if (offset < info->fb_size) {
if (info->fb_pbase == 0)
*paddr = vtophys((uint8_t *)info->fb_vbase + offset);
else
Index: sys/dev/ksyms/ksyms.c
===================================================================
--- sys/dev/ksyms/ksyms.c
+++ sys/dev/ksyms/ksyms.c
@@ -481,7 +481,7 @@
if (error != 0)
return (error);
- if (*offset < 0 || *offset >= round_page(sc->sc_objsz) ||
+ if (*offset >= round_page(sc->sc_objsz) ||
size > round_page(sc->sc_objsz) - *offset ||
(nprot & ~PROT_READ) != 0)
return (EINVAL);
Index: sys/dev/vt/hw/fb/vt_fb.c
===================================================================
--- sys/dev/vt/hw/fb/vt_fb.c
+++ sys/dev/vt/hw/fb/vt_fb.c
@@ -140,7 +140,7 @@
if (info->fb_flags & FB_FLAG_NOMMAP)
return (ENODEV);
- if (offset >= 0 && offset < info->fb_size) {
+ if (offset < info->fb_size) {
if (info->fb_pbase == 0) {
*paddr = vtophys((uint8_t *)info->fb_vbase + offset);
} else {
Index: sys/fs/tmpfs/tmpfs_subr.c
===================================================================
--- sys/fs/tmpfs/tmpfs_subr.c
+++ sys/fs/tmpfs/tmpfs_subr.c
@@ -175,7 +175,7 @@
size_t
tmpfs_mem_avail(void)
{
- vm_ooffset_t avail;
+ long avail;
avail = swap_pager_avail + vm_free_count() - tmpfs_pages_reserved;
if (__predict_false(avail < 0))
Index: sys/kern/uipc_shm.c
===================================================================
--- sys/kern/uipc_shm.c
+++ sys/kern/uipc_shm.c
@@ -1190,7 +1190,7 @@
#ifdef _LP64
objsize > OFF_MAX ||
#endif
- foff < 0 || foff > OFF_MAX - objsize) {
+ foff > OFF_MAX - objsize) {
error = EINVAL;
goto out;
}
Index: sys/kern/vfs_vnops.c
===================================================================
--- sys/kern/vfs_vnops.c
+++ sys/kern/vfs_vnops.c
@@ -2632,7 +2632,7 @@
#ifdef _LP64
size > OFF_MAX ||
#endif
- foff < 0 || foff > OFF_MAX - size)
+ foff > OFF_MAX - size)
return (EINVAL);
writecounted = FALSE;
Index: sys/vm/vnode_pager.c
===================================================================
--- sys/vm/vnode_pager.c
+++ sys/vm/vnode_pager.c
@@ -542,9 +542,6 @@
daddr_t vblock;
daddr_t voffset;
- if (address < 0)
- return -1;
-
if (VN_IS_DOOMED(vp))
return -1;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 21, 6:12 AM (20 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14756062
Default Alt Text
D26214.id76285.diff (2 KB)
Attached To
Mode
D26214: vm_ooffset_t is now unsigned
Attached
Detach File
Event Timeline
Log In to Comment