Re: [PATCH] soc-camera: fix missing clean up on error path

Kuninori Morimoto <[email protected]>
Newsgroups gmane.comp.video.video4linux
Message-ID <uvdmt9iy9.wl%[email protected]>
Dear Guennadi

> If soc_camera_init_user_formats() fails in soc_camera_probe(), we have to call
> client's .remove() method to unregister the video device.
> 
> Reported-by: Kuninori Morimoto <[email protected]>
> Signed-off-by: Guennadi Liakhovetski <[email protected]>
> ---
> Hi Morimoto-san
(snip)
> Could you please verify that this patch fixed your problem?

Thank you nice patch.
I tried this, but kernel stoped in boot.

soc_camera_video_stop is called from icd->ops->remove 
I think it have dead lock by icd->video_lock.

my kernel is from Paul's git and it's Makefile said 2.6.30-rc6

Best regards
--
Kuninori Morimoto
 

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.