projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Convert ERR_PTR(PTR_ERR(p)) instances to ERR_CAST(p)
[firefly-linux-kernel-4.4.55.git]
/
security
/
keys
/
process_keys.c
diff --git
a/security/keys/process_keys.c
b/security/keys/process_keys.c
index 2a0eb946fc7ee84f95b7b32cc39149c8e510a2f5..c886a2bb792ae034950ec71aa20af5fd1d4c17ee 100644
(file)
--- a/
security/keys/process_keys.c
+++ b/
security/keys/process_keys.c
@@
-660,7
+660,7
@@
key_ref_t lookup_user_key(struct task_struct *context, key_serial_t id,
key = key_lookup(id);
if (IS_ERR(key)) {
- key_ref = ERR_
PTR(PTR_ERR(key)
);
+ key_ref = ERR_
CAST(key
);
goto error;
}