]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
[AX.25]: Fix signed char bug
authorRalf Baechle <ralf@linux-mips.org>
Fri, 14 Oct 2005 20:29:56 +0000 (21:29 +0100)
committerArnaldo Carvalho de Melo <acme@mandriva.com>
Sat, 22 Oct 2005 19:20:50 +0000 (17:20 -0200)
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 <linuxhams@n0qbj-11.ampr.org>.

Signed-off-by: Ralf Baechle DL5RB <ralf@linux-mips.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
include/net/ax25.h

index 9dbcd9e51c00a33d1502824929468ce6a9e594c2..30bb4a893237ff8926a0c3f0cb79591ba96a072a 100644 (file)
@@ -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 {