mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
netlink: hide struct module parameter in netlink_kernel_create
This patch defines netlink_kernel_create as a wrapper function of __netlink_kernel_create to hide the struct module *me parameter (which seems to be THIS_MODULE in all existing netlink subsystems). Suggested by David S. Miller. Signed-off-by: Pablo Neira Ayuso <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
9785e10aed
commit
9f00d9776b
20 changed files with 31 additions and 37 deletions
|
|
@ -116,8 +116,7 @@ static int __init selnl_init(void)
|
|||
.flags = NL_CFG_F_NONROOT_RECV,
|
||||
};
|
||||
|
||||
selnl = netlink_kernel_create(&init_net, NETLINK_SELINUX,
|
||||
THIS_MODULE, &cfg);
|
||||
selnl = netlink_kernel_create(&init_net, NETLINK_SELINUX, &cfg);
|
||||
if (selnl == NULL)
|
||||
panic("SELinux: Cannot create netlink socket.");
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue