diff options
author | Andrzej Pietrasiewicz <andrzej.p@collabora.com> | 2020-01-27 15:30:06 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-02-24 17:18:13 +0100 |
commit | e34bca49e4953e5c2afc0425303199a5fd515f82 (patch) | |
tree | ced5bcecf9aa57dfd60c19e362291f5424da8f72 /lib/crc-ccitt.c | |
parent | 26e1ff53640d65a0c3e4ad81a9bedf86b7f5de9f (diff) | |
download | linux-stable-e34bca49e4953e5c2afc0425303199a5fd515f82.tar.gz linux-stable-e34bca49e4953e5c2afc0425303199a5fd515f82.tar.bz2 linux-stable-e34bca49e4953e5c2afc0425303199a5fd515f82.zip |
media: hantro: Read be32 words starting at every fourth byte
Since (luma/chroma)_qtable is an array of unsigned char, indexing it
returns consecutive byte locations, but we are supposed to read the arrays
in four-byte words. Consequently, we should be pointing
get_unaligned_be32() at consecutive word locations instead.
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@collabora.com>
Reviewed-by: Ezequiel Garcia <ezequiel@collabora.com>
Tested-by: Ezequiel Garcia <ezequiel@collabora.com>
Cc: stable@vger.kernel.org
Fixes: 00c30f42c7595f "media: rockchip vpu: remove some unused vars"
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'lib/crc-ccitt.c')
0 files changed, 0 insertions, 0 deletions