Revision a3a4bfde8a271df7ee56fcf31b8d907d50e7f216 authored by Wolfgang Grandegger on 07 October 2011, 09:28:14 UTC, committed by David S. Miller on 10 October 2011, 18:31:00 UTC
Due to the 16 bit access to mscan registers there's too much data copied to
the zero initialized CAN frame when having an odd number of bytes to copy.
This patch ensures that only the requested bytes are copied by using an
8 bit access for the remaining byte.

Reported-by: Andre Naujoks <nautsch@gmail.com>
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent cdaf557
History

back to top