From: Ralf Baechle Date: Fri, 14 Oct 2005 20:29:56 +0000 (+0100) Subject: [AX.25]: Fix signed char bug X-Git-Tag: v2.6.14~43 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4595f251058609d97a5d792de08c34a7956af816;p=platform%2Fkernel%2Flinux-3.10.git [AX.25]: Fix signed char bug On architectures where the char type defaults to unsigned some of the arithmetic in the AX.25 stack to fail, resulting in some packets being dropped on receive. Credits for tracking this down and the original patch to Bob Brose N0QBJ . Signed-off-by: Ralf Baechle DL5RB Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/include/net/ax25.h b/include/net/ax25.h index 9dbcd9e..30bb4a8 100644 --- a/include/net/ax25.h +++ b/include/net/ax25.h @@ -171,7 +171,7 @@ typedef struct { ax25_address calls[AX25_MAX_DIGIS]; unsigned char repeated[AX25_MAX_DIGIS]; unsigned char ndigi; - char lastrepeat; + signed char lastrepeat; } ax25_digi; typedef struct ax25_route {