提交 22760ed3 编写于 作者: S Steven Toth 提交者: Mauro Carvalho Chehab

[media] saa7164: bugfix, avoid oops when driver unloads without firmware

Signed-off-by: NSteven Toth <stoth@kernellabs.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 a1c592b7
......@@ -1423,7 +1423,8 @@ static void __devexit saa7164_finidev(struct pci_dev *pci_dev)
kthread_stop(dev->kthread);
dev->kthread = NULL;
}
saa7164_api_set_debug(dev, 0x00);
if (dev->firmwareloaded)
saa7164_api_set_debug(dev, 0x00);
}
saa7164_histogram_print(&dev->ports[ SAA7164_PORT_ENC1 ],
......
......@@ -604,6 +604,7 @@ int saa7164_downloadfirmware(struct saa7164_dev *dev)
}
}
dev->firmwareloaded = 1;
ret = 0;
out:
......
......@@ -452,6 +452,7 @@ struct saa7164_dev {
/* firmware status */
struct saa7164_fw_status fw_status;
u32 firmwareloaded;
tmComResHWDescr_t hwdesc;
tmComResInterfaceDescr_t intfdesc;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册