mirror of
https://github.com/drasko/codezero.git
synced 2026-07-28 10:00:06 +02:00
Fixed detection of devzero file.
Fixed adding VMA_ANONYMOUS flag explicitly if no file was given
This commit is contained in:
@@ -461,7 +461,7 @@ int do_mmap(struct vm_file *mapfile, unsigned long file_offset, struct tcb *task
|
||||
/* Set up devzero if none given */
|
||||
if (!mapfile) {
|
||||
if (flags & VMA_ANONYMOUS) {
|
||||
mapfile = get_devzero();
|
||||
BUG_ON(!(mapfile = get_devzero()));
|
||||
file_offset = 0;
|
||||
} else
|
||||
BUG();
|
||||
|
||||
Reference in New Issue
Block a user