]> git.baikalelectronics.ru Git - kernel.git/commit
hdlcdrv: Fix CRC calculation.
authorMicah Dowty <micah@navi.cx>
Mon, 21 Jul 2008 16:59:09 +0000 (09:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Jul 2008 17:10:56 +0000 (10:10 -0700)
commitb90b2b853411953e4ec7b79420816dc994abc8d1
tree0d161e5c7fdcef4a3b924be0a6fd1eaec2a81b50
parent3f1e6ffb5da3d6ad46780d4a2810b9b9758e0d7a
hdlcdrv: Fix CRC calculation.

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>
drivers/net/hamradio/hdlcdrv.c