diff options
Diffstat (limited to 'kernel/taskstats.c')
-rw-r--r-- | kernel/taskstats.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/kernel/taskstats.c b/kernel/taskstats.c index faa5239813ce..d3d28919d4b4 100644 --- a/kernel/taskstats.c +++ b/kernel/taskstats.c | |||
@@ -85,13 +85,9 @@ static int prepare_reply(struct genl_info *info, u8 cmd, struct sk_buff **skbp, | |||
85 | int seq = get_cpu_var(taskstats_seqnum)++; | 85 | int seq = get_cpu_var(taskstats_seqnum)++; |
86 | put_cpu_var(taskstats_seqnum); | 86 | put_cpu_var(taskstats_seqnum); |
87 | 87 | ||
88 | reply = genlmsg_put(skb, 0, seq, | 88 | reply = genlmsg_put(skb, 0, seq, &family, 0, cmd); |
89 | family.id, 0, 0, | ||
90 | cmd, family.version); | ||
91 | } else | 89 | } else |
92 | reply = genlmsg_put(skb, info->snd_pid, info->snd_seq, | 90 | reply = genlmsg_put_reply(skb, info, &family, 0, cmd); |
93 | family.id, 0, 0, | ||
94 | cmd, family.version); | ||
95 | if (reply == NULL) { | 91 | if (reply == NULL) { |
96 | nlmsg_free(skb); | 92 | nlmsg_free(skb); |
97 | return -EINVAL; | 93 | return -EINVAL; |