Thread (1 message) 1 message, 1 author, 2016-11-13

Re: [PATCH] genetlink: fix unsigned int comparison with less than zero

From: Johannes Berg <johannes@sipsolutions.net>
Date: 2016-11-13 07:31:54
Also in: lkml

quoted
I suppose it could be, since family IDs are allocated in a 16-bit
range
anyway. But family IDs can also never actually be negative, so
having
an unsigned int in the struct makes sense too.
All idr_* API's accept int, rather than unsigned int. This is my
point.
Sure, but that's an internal implementation detail. The struct
genl_family is also an external API towards its users, and there
negative numbers make no sense whatsoever.

johannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help