Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 200385
b: refs/heads/master
c: 4303ef1
h: refs/heads/master
i:
  200383: 9a1891d
v: v3
  • Loading branch information
Dan Carpenter authored and Linus Torvalds committed Jun 27, 2010
1 parent ff3e2ed commit 3f1ccd9
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: 7e27d6e778cd87b6f2415515d7127eba53fe5d02
refs/heads/master: 4303ef19c6e6d16ea845c04b02b9cf086bcb8ed7
4 changes: 2 additions & 2 deletions trunk/security/keys/keyctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ static int key_get_type_from_user(char *type,
ret = strncpy_from_user(type, _type, len);

if (ret < 0)
return -EFAULT;
return ret;

if (ret == 0 || ret >= len)
return -EINVAL;
Expand Down Expand Up @@ -1080,7 +1080,7 @@ long keyctl_set_reqkey_keyring(int reqkey_defl)
return old_setting;
error:
abort_creds(new);
return -EINVAL;
return ret;

} /* end keyctl_set_reqkey_keyring() */

Expand Down

0 comments on commit 3f1ccd9

Please sign in to comment.