mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 10:53:16 +01:00
Removed hard-coded area definitions from kernel
This commit is contained in:
@@ -234,7 +234,7 @@ int sys_mutex_control(unsigned long mutex_address, int mutex_op)
|
||||
}
|
||||
|
||||
/* Check valid user virtual address */
|
||||
if (!USER_ADDR(mutex_address)) {
|
||||
if (KERN_ADDR(mutex_address)) {
|
||||
printk("Invalid args to %s.\n", __FUNCTION__);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user