Skip to content

Commit

Permalink
genetlink: Make family a signed integer.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David S. Miller committed Nov 13, 2016
1 parent b5718b5 commit 98e4321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/net/genetlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 98e4321

Please sign in to comment.