Skip to content
Snippets Groups Projects
Commit dca2a1c1 authored by Przemyslaw Marczak's avatar Przemyslaw Marczak Committed by Minkyu Kang
Browse files

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: default avatarPrzemyslaw Marczak <p.marczak@samsung.com>
Acked-by: default avatarAnatolij Gustschin <agust@denx.de>
Signed-off-by: default avatarMinkyu Kang <mk7.kang@samsung.com>
parent 679549d1
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment