libusb: Fix netlink sysevent multicast group name
Reviewed by: hrs Differential Revision: https://reviews.freebsd.org/D50739
This commit is contained in:
committed by
Hiroki Sato
parent
0c89182231
commit
4acd63a626
@@ -73,7 +73,7 @@ netlink_init(libusb_context *ctx)
|
||||
if (modfind("nlsysevent") < 0)
|
||||
return (false);
|
||||
if (!snl_init(&ctx->ss, NETLINK_GENERIC) || (group =
|
||||
snl_get_genl_mcast_group(&ctx->ss, "nlsysevent", "ACPI", NULL)) == 0)
|
||||
snl_get_genl_mcast_group(&ctx->ss, "nlsysevent", "USB", NULL)) == 0)
|
||||
return (false);
|
||||
|
||||
if (setsockopt(ctx->ss.fd, SOL_NETLINK, NETLINK_ADD_MEMBERSHIP, &group,
|
||||
|
||||
Reference in New Issue
Block a user