mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[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 <[email protected]> Acked-by: Paul Moore <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
3dabc71578
commit
81878d27fd
5 changed files with 15 additions and 5 deletions
|
|
@ -568,7 +568,7 @@ list_start:
|
|||
|
||||
genlmsg_end(ans_skb, data);
|
||||
|
||||
ret_val = genlmsg_unicast(ans_skb, info->snd_pid);
|
||||
ret_val = genlmsg_reply(ans_skb, info);
|
||||
if (ret_val != 0)
|
||||
goto list_failure;
|
||||
|
||||
|
|
|
|||
|
|
@ -390,7 +390,7 @@ static int netlbl_mgmt_listdef(struct sk_buff *skb, struct genl_info *info)
|
|||
|
||||
genlmsg_end(ans_skb, data);
|
||||
|
||||
ret_val = genlmsg_unicast(ans_skb, info->snd_pid);
|
||||
ret_val = genlmsg_reply(ans_skb, info);
|
||||
if (ret_val != 0)
|
||||
goto listdef_failure;
|
||||
return 0;
|
||||
|
|
@ -512,7 +512,7 @@ static int netlbl_mgmt_version(struct sk_buff *skb, struct genl_info *info)
|
|||
|
||||
genlmsg_end(ans_skb, data);
|
||||
|
||||
ret_val = genlmsg_unicast(ans_skb, info->snd_pid);
|
||||
ret_val = genlmsg_reply(ans_skb, info);
|
||||
if (ret_val != 0)
|
||||
goto version_failure;
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -160,7 +160,7 @@ static int netlbl_unlabel_list(struct sk_buff *skb, struct genl_info *info)
|
|||
|
||||
genlmsg_end(ans_skb, data);
|
||||
|
||||
ret_val = genlmsg_unicast(ans_skb, info->snd_pid);
|
||||
ret_val = genlmsg_reply(ans_skb, info);
|
||||
if (ret_val != 0)
|
||||
goto list_failure;
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue