[Bug 205174] multimedia/webcamd: Segfault with RTL2832U/R820T-based DVB-T USB stick
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Dec 9 22:55:21 UTC 2015
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 at FreeBSD.org
Reporter: f.degner at gmx.de
Assignee: hselasky at FreeBSD.org
Flags: maintainer-feedback?(hselasky at 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.
More information about the freebsd-ports-bugs
mailing list