Hello all, just a fix of the v4l2_extension driver: fix list and waitqueue initializations in order to avoid a NULL pointer reference when calling v4l2ext_hlp_send_cmd Thanks to Jiri for helping me to find the bug! Cheers, Thierry
Signed-off-by: Thierry MERLE thierry.merle@free.fr
---
v4l2_extension-hlp.c | 4 ++++ 1 file changed, 4 insertions(+)
--- a/linux/drivers/media/video/v4l2_extension/v4l2_extension-hlp.c Mon Mar 17 22:28:17 2008 +0100 +++ b/linux/drivers/media/video/v4l2_extension/v4l2_extension-hlp.c Fri Mar 28 21:44:02 2008 +0100 @@ -253,6 +253,10 @@ int v4l2ext_hlp_send_cmd(struct v4l2ext_ int v4l2ext_hlp_init(void) { + INIT_LIST_HEAD(&helperd_dev.commands); + INIT_LIST_HEAD(&helperd_dev.pcommands); + init_waitqueue_head(&helperd_dev.waitqueue); + return misc_register(&misc_device); }