Testing against IS_KERNEL_ADDRESS() is more correct.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13983 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
05f8437878
commit
c987e126de
|
@ -125,7 +125,7 @@ dump_sem_info(int argc, char **argv)
|
|||
|
||||
num = strtoul(argv[1], NULL, 0);
|
||||
|
||||
if (!IS_USER_ADDRESS(num)) {
|
||||
if (IS_KERNEL_ADDRESS(num)) {
|
||||
dump_sem((struct sem_entry *)num);
|
||||
return 0;
|
||||
} else if (num > 0) {
|
||||
|
|
Loading…
Reference in New Issue