]> Pileus Git - ~andy/linux/commitdiff
Connector: Set the CN_NETLINK_USERS correctly
authorK. Y. Srinivasan <kys@microsoft.com>
Tue, 17 May 2011 22:25:37 +0000 (15:25 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 7 Jun 2011 19:02:00 +0000 (12:02 -0700)
The CN_NETLINK_USERS must be set to the highest valid index +1.
Thanks to Evgeniy for pointing this out.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Cc: stable <stable@kernel.org> [.39]
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/connector.h

index 7c60d0942adb436b7ddb58d5132d952c0bd65541..f696bccd48cb614a1d459245c6ea8413b0299d0f 100644 (file)
@@ -44,7 +44,7 @@
 #define CN_VAL_DRBD                    0x1
 #define CN_KVP_IDX                     0x9     /* HyperV KVP */
 
-#define CN_NETLINK_USERS               9
+#define CN_NETLINK_USERS               10      /* Highest index + 1 */
 
 /*
  * Maximum connector's message size.