Removed hard-coded area definitions from kernel

This commit is contained in:
Bahadir Balban
2009-10-17 13:42:49 +03:00
parent fc95d95454
commit d19c5c26fd
5 changed files with 2 additions and 45 deletions

View File

@@ -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;
}