diff options
author | David Howells <dhowells@redhat.com> | 2015-10-21 09:04:48 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2015-10-21 10:18:36 -0400 |
commit | 146aa8b1453bd8f1ff2304ffb71b4ee0eb9acdcc (patch) | |
tree | a89ef2cd2e8029b0c09a58739cca0e7e2e68f4db /fs/cifs/cifs_spnego.c | |
parent | 4adc605edc5f744dcf432241b5996ff6a13d868c (diff) |
KEYS: Merge the type-specific data with the payload data
Merge the type-specific data with the payload data into one four-word chunk
as it seems pointless to keep them separate.
Use user_key_payload() for accessing the payloads of overloaded
user-defined keys.
Signed-off-by: David Howells <dhowells@redhat.com>
cc: linux-cifs@vger.kernel.org
cc: ecryptfs@vger.kernel.org
cc: linux-ext4@vger.kernel.org
cc: linux-f2fs-devel@lists.sourceforge.net
cc: linux-nfs@vger.kernel.org
cc: ceph-devel@vger.kernel.org
cc: linux-ima-devel@lists.sourceforge.net
Diffstat (limited to 'fs/cifs/cifs_spnego.c')
-rw-r--r-- | fs/cifs/cifs_spnego.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/cifs/cifs_spnego.c b/fs/cifs/cifs_spnego.c index f4cf200b3c76..6908080e9b6d 100644 --- a/fs/cifs/cifs_spnego.c +++ b/fs/cifs/cifs_spnego.c | |||
@@ -42,7 +42,7 @@ cifs_spnego_key_instantiate(struct key *key, struct key_preparsed_payload *prep) | |||
42 | goto error; | 42 | goto error; |
43 | 43 | ||
44 | /* attach the data */ | 44 | /* attach the data */ |
45 | key->payload.data = payload; | 45 | key->payload.data[0] = payload; |
46 | ret = 0; | 46 | ret = 0; |
47 | 47 | ||
48 | error: | 48 | error: |
@@ -52,7 +52,7 @@ error: | |||
52 | static void | 52 | static void |
53 | cifs_spnego_key_destroy(struct key *key) | 53 | cifs_spnego_key_destroy(struct key *key) |
54 | { | 54 | { |
55 | kfree(key->payload.data); | 55 | kfree(key->payload.data[0]); |
56 | } | 56 | } |
57 | 57 | ||
58 | 58 | ||
@@ -167,7 +167,7 @@ cifs_get_spnego_key(struct cifs_ses *sesInfo) | |||
167 | 167 | ||
168 | #ifdef CONFIG_CIFS_DEBUG2 | 168 | #ifdef CONFIG_CIFS_DEBUG2 |
169 | if (cifsFYI && !IS_ERR(spnego_key)) { | 169 | if (cifsFYI && !IS_ERR(spnego_key)) { |
170 | struct cifs_spnego_msg *msg = spnego_key->payload.data; | 170 | struct cifs_spnego_msg *msg = spnego_key->payload.data[0]; |
171 | cifs_dump_mem("SPNEGO reply blob:", msg->data, min(1024U, | 171 | cifs_dump_mem("SPNEGO reply blob:", msg->data, min(1024U, |
172 | msg->secblob_len + msg->sesskey_len)); | 172 | msg->secblob_len + msg->sesskey_len)); |
173 | } | 173 | } |