Date: Wed, 09 Dec 2015 22:55:20 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 205174] multimedia/webcamd: Segfault with RTL2832U/R820T-based DVB-T USB stick Message-ID: <bug-205174-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205174 Bug ID: 205174 Summary: multimedia/webcamd: Segfault with RTL2832U/R820T-based DVB-T USB stick Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: hselasky@FreeBSD.org Reporter: f.degner@gmx.de Assignee: hselasky@FreeBSD.org Flags: maintainer-feedback?(hselasky@FreeBSD.org) Created attachment 164029 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=164029&action=edit Added NULL check Webcamd segfaults when used with the following dvb-t usb stick: # usbconfig -u 1 -a 5 dump_device_desc ugen1.5: <RTL2832U Generic> ... ... idVendor = 0x0bda idProduct = 0x2832 ... # Here is what gdb reports: Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00000000007492df in rtl2832u_tuner_attach (adap=0x8024ab050) at media_tree/drivers/media/usb/dvb-usb-v2/rtl28xxu.c:1324 1324 if (IS_ERR(pdev) || pdev->dev.driver == NULL) ... (gdb) p pdev $1 = (struct platform_device *) 0x0 (gdb) Applying the attached patch to rtl28xxu.c fixed the problem. -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-205174-13>