]> git.baikalelectronics.ru Git - kernel.git/commit
genetlink/pmcraid: use proper genetlink multicast API
authorJohannes Berg <johannes.berg@intel.com>
Sun, 24 Nov 2013 20:09:26 +0000 (21:09 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Nov 2013 23:26:30 +0000 (18:26 -0500)
commit55f3a1fb3229e5006a5ad1956d3db9b9428ebc7a
tree933490eed9b4751978bb9d469d6afb6013646a8d
parent988926e2c12b862ae3d6e3eb23e44efa26765914
genetlink/pmcraid: use proper genetlink multicast API

The pmcraid driver 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 it use the correct API, but since this may already be used
as-is by userspace, reserve a family ID for this code and also
reserve that group ID to not break userspace assumptions.

My previous patch broke event delivery in the driver as I missed
that it wasn't using the right API and forgot to update it later
in my series.

While changing this, I noticed that the genetlink code could use
the static group ID instead of a strcmp(), so also do that for
the VFS_DQUOT family.

Cc: Anil Ravindranath <anil_ravindranath@pmc-sierra.com>
Cc: "James E.J. Bottomley" <JBottomley@parallels.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/scsi/pmcraid.c
include/uapi/linux/genetlink.h
net/netlink/genetlink.c