1 From: Raymund Will <rw@suse.de>
2 Subject: ia64: fill 'struct taskstats' on stack and 'memcpy' result to skb.
6 Signed-off-by: Raymund Will <rw@suse.de>
9 kernel/taskstats.c | 13 +++++++++++--
10 1 files changed, 11 insertions(+), 2 deletions(-)
12 --- a/kernel/taskstats.c
13 +++ b/kernel/taskstats.c
14 @@ -433,6 +433,12 @@ static int taskstats_user_cmd(struct sk_
15 struct taskstats *stats;
19 + struct taskstats statn;
25 rc = parse(info->attrs[TASKSTATS_CMD_ATTR_REGISTER_CPUMASK], &mask);
27 @@ -463,7 +469,7 @@ static int taskstats_user_cmd(struct sk_
31 - rc = fill_pid(pid, NULL, stats);
32 + rc = fill_pid(pid, NULL, statf);
35 } else if (info->attrs[TASKSTATS_CMD_ATTR_TGID]) {
36 @@ -472,12 +478,15 @@ static int taskstats_user_cmd(struct sk_
40 - rc = fill_tgid(tgid, NULL, stats);
41 + rc = fill_tgid(tgid, NULL, statf);
48 + memcpy(stats, &statn, sizeof(statn));
50 return send_reply(rep_skb, info->snd_pid);