projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5718b5
)
genetlink: Make family a signed integer.
author
David S. Miller
<davem@davemloft.net>
Sun, 13 Nov 2016 17:14:59 +0000
(12:14 -0500)
committer
David 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
patch
|
blob
|
history
diff --git
a/include/net/genetlink.h
b/include/net/genetlink.h
index 3ec87bacc0f55e7c7e87d870ab9d0970bc2571b8..a34275be360001e89740fe4325a53905683e9778 100644
(file)
--- a/
include/net/genetlink.h
+++ b/
include/net/genetlink.h
@@
-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;