net: make struct inet_frags::qsize unsigned
authorAlexey Dobriyan <adobriyan@gmail.com>
Mon, 22 May 2017 21:20:26 +0000 (00:20 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 May 2017 15:13:19 +0000 (11:13 -0400)
This field is sizeof of corresponding kmem_cache so it can't be negative.

Prepare for 32-bit kmem_cache_create().

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_frag.h

index 5894730ec82a9fba3b9bca160de6e0db3a73024e..975779d0e7b086dd648429b76e3558d681e62a3d 100644 (file)
@@ -92,7 +92,7 @@ struct inet_frags {
         */
        u32                     rnd;
        seqlock_t               rnd_seqlock;
-       int                     qsize;
+       unsigned int            qsize;
 
        unsigned int            (*hashfn)(const struct inet_frag_queue *);
        bool                    (*match)(const struct inet_frag_queue *q,