]> git.sur5r.net Git - u-boot/commit
common: lcd.c: fix data abort exception when try to access bmp header
authorPrzemyslaw Marczak <p.marczak@samsung.com>
Wed, 22 Jan 2014 10:24:13 +0000 (11:24 +0100)
committerMinkyu Kang <mk7.kang@samsung.com>
Mon, 3 Feb 2014 06:36:14 +0000 (15:36 +0900)
commitdca2a1c18576116b33c31ea4d1cd7a3812e3bf95
treef51aa3295f2246e03ed99cb54a26a4e0dc7fbf8a
parent679549d1802f0ee8e66576ecfc766d30b4040983
common: lcd.c: fix data abort exception when try to access bmp header

Changes:
- le16_to_cpu() to get_unaligned_le16()
- le32_to_cpu() to get_unaligned_le32()
when access fields in struct bmp header.

This changes avoids data abort exception caused by unaligned data access.

Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
Acked-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
common/lcd.c