]> Pileus Git - ~andy/linux/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)
commit2ecf7536b2787580616d23b6507005d930975ca0
tree050b07aaf96d86a83ed42c34511a3f28e1c0d1d4
parente5dcecba015f9774a402ba559b80b16999747e3b
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