Skip to content

Commit

Permalink
V4L/DVB (6610): Fix a wrong typecast
Browse files Browse the repository at this point in the history
Signed-off-by: Michel Ludwig <michel.ludwig@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Michel Ludwig authored and Mauro Carvalho Chehab committed Jan 25, 2008
1 parent 993efa7 commit 2fc580f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/tuner-xc2028.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 2fc580f

Please sign in to comment.