mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
trimming task_work: kill ->data
get rid of the only user of ->data; this is _not_ the final variant - in the end we'll have task_work and rcu_head identical and just use cred->rcu, at which point the separate allocation will be gone completely. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
7266702805
commit
41f9d29f09
5 changed files with 17 additions and 12 deletions
|
@ -837,9 +837,10 @@ error:
|
|||
void key_change_session_keyring(struct task_work *twork)
|
||||
{
|
||||
const struct cred *old = current_cred();
|
||||
struct cred *new = twork->data;
|
||||
struct kludge *p = container_of(twork, struct kludge, twork);
|
||||
struct cred *new = p->cred;
|
||||
|
||||
kfree(twork);
|
||||
kfree(p);
|
||||
if (unlikely(current->flags & PF_EXITING)) {
|
||||
put_cred(new);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue