mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-04 02:34:10 -04:00
V4L/DVB (6610): Fix a wrong typecast
Signed-off-by: Michel Ludwig <michel.ludwig@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
993efa7133
commit
2fc580ffeb
@@ -311,7 +311,7 @@ static int load_all_firmwares(struct dvb_frontend *fe)
|
||||
id = le64_to_cpu(*(v4l2_std_id *) p);
|
||||
p += sizeof(id);
|
||||
|
||||
size = le32_to_cpu(*(v4l2_std_id *) p);
|
||||
size = le32_to_cpu(*(__u32 *) p);
|
||||
p += sizeof(size);
|
||||
|
||||
if ((!size) || (size + p > endp)) {
|
||||
|
||||
Reference in New Issue
Block a user