Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 169172
b: refs/heads/master
c: c4a5af5
h: refs/heads/master
v: v3
  • Loading branch information
Andrew G. Morgan authored and James Morris committed Nov 23, 2009
1 parent bd75ba0 commit b50d37e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fe542cf59bf0b31afe72b9e9749c0f6645419fa0
refs/heads/master: c4a5af54c8ef277a59189fc9358e190f3c1b8206
4 changes: 2 additions & 2 deletions trunk/kernel/capability.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ SYSCALL_DEFINE2(capget, cap_user_header_t, header, cap_user_data_t, dataptr)
kernel_cap_t pE, pI, pP;

ret = cap_validate_magic(header, &tocopy);
if (ret != 0)
return ret;
if ((dataptr == NULL) || (ret != 0))
return ((dataptr == NULL) && (ret == -EINVAL)) ? 0 : ret;

if (get_user(pid, &header->pid))
return -EFAULT;
Expand Down

0 comments on commit b50d37e

Please sign in to comment.