]> git.baikalelectronics.ru Git - kernel.git/commit
quota/genetlink: use proper genetlink multicast APIs
authorJohannes Berg <johannes.berg@intel.com>
Tue, 19 Nov 2013 14:19:33 +0000 (15:19 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Nov 2013 21:39:05 +0000 (16:39 -0500)
commit29242a6ddfec1b4db89e85dd88914f44ac3371aa
tree050b07aaf96d86a83ed42c34511a3f28e1c0d1d4
parent4d7ed6d97219ffbdfa5a46f67329196ea98e37ef
quota/genetlink: use proper genetlink multicast APIs

The quota code is abusing the genetlink API and is using
its family ID as the multicast group ID, which is invalid
and may belong to somebody else (and likely will.)

Make the quota code use the correct API, but since this
is already used as-is by userspace, reserve a family ID
for this code and also reserve that group ID to not break
userspace assumptions.

Acked-by: Jan Kara <jack@suse.cz>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
fs/quota/netlink.c
include/uapi/linux/genetlink.h
net/netlink/genetlink.c