提交 4aae8efb 编写于 作者: D Darron Broad 提交者: Mauro Carvalho Chehab

V4L/DVB (9171): S2API: Stop an OOPS if illegal commands are dumped in S2API.

Quick fix to stop an OOPS if illegal commands are dumped in S2API.
Signed-off-by: NDarron Broad <darron@kewl.org>
Signed-off-by: NSteven Toth <stoth@linuxtv.org>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 01a8f038
......@@ -848,6 +848,13 @@ void dtv_property_dump(struct dtv_property *tvp)
{
int i;
if( (tvp->cmd <= 0 || tvp->cmd > DTV_DELIVERY_SYSTEM) &&
tvp->cmd != DTV_API_VERSION) {
printk("%s: tvp.cmd = 0x%08x (undefined/unknown/invalid)\n",
__func__, tvp->cmd);
return;
}
printk("%s() tvp.cmd = 0x%08x (%s)\n"
,__FUNCTION__
,tvp->cmd
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册