V4L/DVB (6610): Fix a wrong typecast
authorMichel Ludwig <michel.ludwig@gmail.com>
Fri, 16 Nov 2007 10:19:35 +0000 (07:19 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 25 Jan 2008 21:02:13 +0000 (19:02 -0200)
Signed-off-by: Michel Ludwig <michel.ludwig@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/tuner-xc2028.c

index 371e822fb4cca68415ccce759f87fe7b5f77818b..c64eae2c7ec21e6f298194b328a9a63672a1fdd3 100644 (file)
@@ -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)) {