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
File Mode Size
interface
Kbuild -rw-r--r-- 43 bytes
balloon.h -rw-r--r-- 1.1 KB
events.h -rw-r--r-- 3.3 KB
evtchn.h -rw-r--r-- 2.9 KB
features.h -rw-r--r-- 463 bytes
gntalloc.h -rw-r--r-- 2.6 KB
gntdev.h -rw-r--r-- 5.6 KB
grant_table.h -rw-r--r-- 5.4 KB
hvc-console.h -rw-r--r-- 525 bytes
hvm.h -rw-r--r-- 695 bytes
page.h -rw-r--r-- 154 bytes
platform_pci.h -rw-r--r-- 1.6 KB
privcmd.h -rw-r--r-- 2.6 KB
swiotlb-xen.h -rw-r--r-- 2.0 KB
tmem.h -rw-r--r-- 126 bytes
xen-ops.h -rw-r--r-- 852 bytes
xen.h -rw-r--r-- 856 bytes
xenbus.h -rw-r--r-- 8.1 KB
xencomm.h -rw-r--r-- 2.5 KB

back to top