[GENL]: Add genlmsg_reply() to simply unicast replies to requests
A generic netlink user has no interest in knowing how to address the source of the original request. Signed-off-by: Thomas Graf <tgraf@suug.ch> Acked-by: Paul Moore <paul.moore@hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
3dabc71578
commit
81878d27fd
@ -529,7 +529,7 @@ static int ctrl_getfamily(struct sk_buff *skb, struct genl_info *info)
|
||||
goto errout;
|
||||
}
|
||||
|
||||
err = genlmsg_unicast(msg, info->snd_pid);
|
||||
err = genlmsg_reply(msg, info);
|
||||
errout:
|
||||
return err;
|
||||
}
|
||||
|
Reference in New Issue
Block a user