提交 2fc580ff 编写于 作者: M Michel Ludwig 提交者: Mauro Carvalho Chehab

V4L/DVB (6610): Fix a wrong typecast

Signed-off-by: NMichel Ludwig <michel.ludwig@gmail.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
上级 993efa71
......@@ -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)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册