mirror of
https://github.com/torvalds/linux.git
synced 2024-11-28 15:11:31 +00:00
V4L/DVB (3314): Fixed em28xx based system lockup
Fixed em28xx based system lockup, device needs to be initialized before starting the isoc transfer otherwise the system will completly lock up. Signed-off-by: Markus Rechberger <mrechberger@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
parent
21d06544a7
commit
e5d4a56d5d
@ -383,12 +383,14 @@ static int em28xx_v4l2_open(struct inode *inode, struct file *filp)
|
||||
em28xx_capture_start(dev, 1);
|
||||
em28xx_resolution_set(dev);
|
||||
|
||||
/* device needs to be initialized before isoc transfer */
|
||||
video_mux(dev, 0);
|
||||
|
||||
/* start the transfer */
|
||||
errCode = em28xx_init_isoc(dev);
|
||||
if (errCode)
|
||||
goto err;
|
||||
|
||||
video_mux(dev, 0);
|
||||
}
|
||||
|
||||
dev->users++;
|
||||
|
Loading…
Reference in New Issue
Block a user