cdc-eem: bad crc checking
authorVincent CUISSARD <vincent.cuissard@gmail.com>
Thu, 16 Jul 2009 06:08:58 +0000 (06:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Jul 2009 01:06:25 +0000 (18:06 -0700)
commit7fefe6a88494b00b151b5ca7bb84daaa781bbca7
treeac6283137d3f61019a30bb637c2f3ed05f9f2b37
parent869f1c54e9aecde1dfd4349832ce9415a596be8e
cdc-eem: bad crc checking

When the driver received an EEM packet with CRC option enabled, driver must
compute and check the CRC of the Ethernet data. Previous version computes CRC
on Ethernet data plus the original CRC value. Skbuff is correctly trimed but
the old length is used when CRC is computed.

Signed-off-by: Vincent CUISSARD <vincent.cuissard@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/cdc_eem.c