]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hdlcdrv: Fix CRC calculation.
authorMicah Dowty <micah@navi.cx>
Thu, 24 Jul 2008 06:46:31 +0000 (23:46 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Aug 2008 19:42:58 +0000 (12:42 -0700)
commit5f817e2b6d8d2dd972f4746faf20191fef7b08c6
tree511f92ee5c4dae1aafd346779c2ecc15a95a4217
parent75a3a96582f61c294fe18baffde575972ebdc24b
hdlcdrv: Fix CRC calculation.

[ Upstream commit ae6134bdf3197206fba95563d755d2fa50d90ddd ]

This is a trivial patch against the hdlcdrv module that fixes its CRC
calculation. The finished CRC was overwriting the first two bytes of
each packet rather than being appended to the end.

I've tested this with 2.6.8 and 2.6.10-rc1, but hdlcdrv hasn't changed
much recently so it should work with many other kernel versions.

Signed-off-by: Micah Dowty <micah@navi.cx>
Acked-by: Thomas Sailer <t.sailer@alumni.ethz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/hamradio/hdlcdrv.c