projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
KEYS: Add payload preparsing opportunity prior to key instantiate or update
[deliverable/linux.git]
/
fs
/
cifs
/
cifsacl.c
diff --git
a/fs/cifs/cifsacl.c
b/fs/cifs/cifsacl.c
index 05f4dc263a23b791f1f1ab9e8e0ba0cb6831af19..f3c60e264ca83b99d4f40d8969e40c0da38583ad 100644
(file)
--- a/
fs/cifs/cifsacl.c
+++ b/
fs/cifs/cifsacl.c
@@
-167,17
+167,17
@@
static struct shrinker cifs_shrinker = {
};
static int
};
static int
-cifs_idmap_key_instantiate(struct key *key,
const void *data, size_t datalen
)
+cifs_idmap_key_instantiate(struct key *key,
struct key_preparsed_payload *prep
)
{
char *payload;
{
char *payload;
- payload = kmalloc(datalen, GFP_KERNEL);
+ payload = kmalloc(
prep->
datalen, GFP_KERNEL);
if (!payload)
return -ENOMEM;
if (!payload)
return -ENOMEM;
- memcpy(payload,
data,
datalen);
+ memcpy(payload,
prep->data, prep->
datalen);
key->payload.data = payload;
key->payload.data = payload;
- key->datalen = datalen;
+ key->datalen =
prep->
datalen;
return 0;
}
return 0;
}
This page took
0.043853 seconds
and
5
git commands to generate.