]> git.baikalelectronics.ru Git - kernel.git/commitdiff
genetlink: Make family a signed integer.
authorDavid S. Miller <davem@davemloft.net>
Sun, 13 Nov 2016 17:14:59 +0000 (12:14 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 13 Nov 2016 17:14:59 +0000 (12:14 -0500)
The idr_alloc(), idr_remove(), et al. routines all expect IDs to be
signed integers.  Therefore make the genl_family member 'id' signed
too.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/genetlink.h

index 3ec87bacc0f55e7c7e87d870ab9d0970bc2571b8..a34275be360001e89740fe4325a53905683e9778 100644 (file)
@@ -48,7 +48,7 @@ struct genl_info;
  * @n_ops: number of operations supported by this family
  */
 struct genl_family {
-       unsigned int            id;             /* private */
+       int                     id;             /* private */
        unsigned int            hdrsize;
        char                    name[GENL_NAMSIZ];
        unsigned int            version;