mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-30 15:12:44 +00:00
cuse(3): Fix an off-by-one.
The page allocation limit is inclusive and not exclusive. MFC after: 1 week Sponsored by: NVIDIA Networking
This commit is contained in:
parent
0811ce5723
commit
0996dd7df6
@ -1159,7 +1159,7 @@ cuse_server_ioctl(struct cdev *dev, unsigned long cmd,
|
||||
error = ENOMEM;
|
||||
break;
|
||||
}
|
||||
if (pai->page_count >= CUSE_ALLOC_PAGES_MAX) {
|
||||
if (pai->page_count > CUSE_ALLOC_PAGES_MAX) {
|
||||
error = ENOMEM;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user