Re: [PATCH] kcm: fix variable type

2016-03-13 Thread Andrzej Hajda
On 03/11/2016 05:44 PM, David Miller wrote: > From: Andrzej Hajda > Date: Fri, 11 Mar 2016 07:51:15 +0100 > >> Function skb_splice_bits can return negative values, its result should >> be assigned to signed variable to allow correct error checking. >> >> The problem has been detected using patch >

Re: [PATCH] kcm: fix variable type

2016-03-11 Thread David Miller
From: Andrzej Hajda Date: Fri, 11 Mar 2016 07:51:15 +0100 > Function skb_splice_bits can return negative values, its result should > be assigned to signed variable to allow correct error checking. > > The problem has been detected using patch > scripts/coccinelle/tests/unsigned_lesser_than_zero.

[PATCH] kcm: fix variable type

2016-03-10 Thread Andrzej Hajda
Function skb_splice_bits can return negative values, its result should be assigned to signed variable to allow correct error checking. The problem has been detected using patch scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci. Signed-off-by: Andrzej Hajda --- net/kcm/kcmsock.c | 2 +- 1