android_kernel_xiaomi_sm8350/drivers
Franck Bui-Huu 024cd7e088 [PATCH] softcursor.c: avoid unaligned accesses
Fix some possible unaligned accesses when accessing fields of 'image'
pointer.  Indeed this pointer was obtained by allocating a block of memory
that embeds a temporary array plus an image structure.  The temporary
buffer was located at the start of the allocated block and depending on its
size, the image structure which comes right after can be unaligned.

For example when using mini fonts (4x6) (cursor's width is 4 and its height
is 6) the temporary buf size is 6 bytes.

Therefore this patch moves the image structure to the start of the block
and moves the temporary buffer right after.  It makes 'image' pointer
always aligned and since the tempo buf is a buffer of char, it's always
correctly aligned as well.

It also fixes the file header alignement.

Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
Cc: James Simmons <jsimmons@infradead.org>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-12-08 08:29:07 -08:00
..
acorn
acpi
amba
ata
atm [PATCH] atm/ambassador: use bitrev8 2006-12-08 08:28:40 -08:00
base
block [PATCH] struct path: convert nbd 2006-12-08 08:28:47 -08:00
bluetooth
cdrom
char [PATCH] Char: cyclades, fix warnings 2006-12-08 08:29:01 -08:00
clocksource [PATCH] time: re-add verify_pmtmr_rate 2006-12-08 08:28:37 -08:00
connector
cpufreq
crypto
dio
dma
edac
eisa
fc4
firmware
hwmon
i2c [PATCH] struct path: convert i2c-drivers 2006-12-08 08:28:45 -08:00
ide [PATCH] sl82c105: straighten up IDE control/status register caching 2006-12-08 08:29:03 -08:00
ieee1394 [PATCH] struct path: convert ieee1394 2006-12-08 08:28:46 -08:00
infiniband [PATCH] LOG2: Implement a general integer log2 facility in the kernel 2006-12-08 08:28:51 -08:00
input Input: ucb1400 - fix compile error 2006-12-08 01:37:03 -05:00
isdn [PATCH] ISDN: fix warnings 2006-12-08 08:29:01 -08:00
leds
macintosh Merge rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 2006-12-08 01:07:56 -05:00
mca
md [PATCH] LOG2: Implement a general integer log2 facility in the kernel 2006-12-08 08:28:51 -08:00
media [PATCH] struct path: convert v4l 2006-12-08 08:28:50 -08:00
message
mfd
misc
mmc [PATCH] LOG2: Implement a general integer log2 facility in the kernel 2006-12-08 08:28:51 -08:00
mtd
net [PATCH] tty: switch to ktermios 2006-12-08 08:28:57 -08:00
nubus
oprofile [PATCH] struct path: convert oprofile 2006-12-08 08:28:48 -08:00
parisc
parport
pci [PATCH] struct path: convert pci 2006-12-08 08:28:48 -08:00
pcmcia [PATCH] struct path: convert pcmcia 2006-12-08 08:28:48 -08:00
pnp [PATCH] struct path: convert isapnp 2006-12-08 08:28:46 -08:00
ps3
rapidio
rtc
s390 [PATCH] tty: switch to ktermios 2006-12-08 08:28:57 -08:00
sbus [PATCH] struct path: convert sbus 2006-12-08 08:28:49 -08:00
scsi [PATCH] struct path: convert scsi 2006-12-08 08:28:49 -08:00
serial [PATCH] tty: switch to ktermios 2006-12-08 08:28:57 -08:00
sh
sn
spi
tc [PATCH] tty: switch to ktermios 2006-12-08 08:28:57 -08:00
telephony [PATCH] struct path: convert ixj 2006-12-08 08:28:46 -08:00
usb [PATCH] tty: switch to ktermios 2006-12-08 08:28:57 -08:00
video [PATCH] softcursor.c: avoid unaligned accesses 2006-12-08 08:29:07 -08:00
w1
zorro [PATCH] struct path: convert zorro 2006-12-08 08:28:50 -08:00
Kconfig
Makefile