mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-20 11:28:15 +07:00
7a0786c19d
The DVB binding schema at the DVB core assumes that the frontend is a separate driver. Faling to do that causes OOPS when the module is removed, as it tries to do a symbol_put_addr on an internal symbol, causing craches like: WARNING: CPU: 1 PID: 28102 at kernel/module.c:1108 module_put+0x57/0x70 Modules linked in: dvb_usb_gp8psk(-) dvb_usb dvb_core nvidia_drm(PO) nvidia_modeset(PO) snd_hda_codec_hdmi snd_hda_intel snd_hda_codec snd_hwdep snd_hda_core snd_pcm snd_timer snd soundcore nvidia(PO) [last unloaded: rc_core] CPU: 1 PID: 28102 Comm: rmmod Tainted: P WC O 4.8.4-build.1 #1 Hardware name: MSI MS-7309/MS-7309, BIOS V1.12 02/23/2009 Call Trace: dump_stack+0x44/0x64 __warn+0xfa/0x120 module_put+0x57/0x70 module_put+0x57/0x70 warn_slowpath_null+0x23/0x30 module_put+0x57/0x70 gp8psk_fe_set_frontend+0x460/0x460 [dvb_usb_gp8psk] symbol_put_addr+0x27/0x50 dvb_usb_adapter_frontend_exit+0x3a/0x70 [dvb_usb] From Derek's tests: "Attach bug is fixed, tuning works, module unloads without crashing. Everything seems ok!" Reported-by: Derek <user.vdr@gmail.com> Tested-by: Derek <user.vdr@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
87 lines
2.7 KiB
Makefile
87 lines
2.7 KiB
Makefile
dvb-usb-objs += dvb-usb-firmware.o dvb-usb-init.o dvb-usb-urb.o dvb-usb-i2c.o
|
|
dvb-usb-objs += dvb-usb-dvb.o dvb-usb-remote.o usb-urb.o
|
|
obj-$(CONFIG_DVB_USB) += dvb-usb.o
|
|
|
|
dvb-usb-vp7045-objs := vp7045.o vp7045-fe.o
|
|
obj-$(CONFIG_DVB_USB_VP7045) += dvb-usb-vp7045.o
|
|
|
|
dvb-usb-vp702x-objs := vp702x.o vp702x-fe.o
|
|
obj-$(CONFIG_DVB_USB_VP702X) += dvb-usb-vp702x.o
|
|
|
|
dvb-usb-gp8psk-objs := gp8psk.o
|
|
obj-$(CONFIG_DVB_USB_GP8PSK) += dvb-usb-gp8psk.o
|
|
|
|
dvb-usb-dtt200u-objs := dtt200u.o dtt200u-fe.o
|
|
obj-$(CONFIG_DVB_USB_DTT200U) += dvb-usb-dtt200u.o
|
|
|
|
dvb-usb-dibusb-common-objs := dibusb-common.o
|
|
|
|
dvb-usb-dibusb-mc-common-objs := dibusb-mc-common.o
|
|
obj-$(CONFIG_DVB_USB_DIB3000MC) += dvb-usb-dibusb-common.o dvb-usb-dibusb-mc-common.o
|
|
|
|
dvb-usb-a800-objs := a800.o
|
|
obj-$(CONFIG_DVB_USB_A800) += dvb-usb-a800.o
|
|
|
|
dvb-usb-dibusb-mb-objs := dibusb-mb.o
|
|
obj-$(CONFIG_DVB_USB_DIBUSB_MB) += dvb-usb-dibusb-common.o dvb-usb-dibusb-mb.o
|
|
|
|
dvb-usb-dibusb-mc-objs := dibusb-mc.o
|
|
obj-$(CONFIG_DVB_USB_DIBUSB_MC) += dvb-usb-dibusb-mc.o
|
|
|
|
dvb-usb-nova-t-usb2-objs := nova-t-usb2.o
|
|
obj-$(CONFIG_DVB_USB_NOVA_T_USB2) += dvb-usb-nova-t-usb2.o
|
|
|
|
dvb-usb-umt-010-objs := umt-010.o
|
|
obj-$(CONFIG_DVB_USB_UMT_010) += dvb-usb-umt-010.o
|
|
|
|
dvb-usb-m920x-objs := m920x.o
|
|
obj-$(CONFIG_DVB_USB_M920X) += dvb-usb-m920x.o
|
|
|
|
dvb-usb-digitv-objs := digitv.o
|
|
obj-$(CONFIG_DVB_USB_DIGITV) += dvb-usb-digitv.o
|
|
|
|
dvb-usb-cxusb-objs := cxusb.o
|
|
obj-$(CONFIG_DVB_USB_CXUSB) += dvb-usb-cxusb.o
|
|
|
|
dvb-usb-ttusb2-objs := ttusb2.o
|
|
obj-$(CONFIG_DVB_USB_TTUSB2) += dvb-usb-ttusb2.o
|
|
|
|
dvb-usb-dib0700-objs := dib0700_core.o dib0700_devices.o
|
|
obj-$(CONFIG_DVB_USB_DIB0700) += dvb-usb-dib0700.o
|
|
|
|
dvb-usb-opera-objs := opera1.o
|
|
obj-$(CONFIG_DVB_USB_OPERA1) += dvb-usb-opera.o
|
|
|
|
dvb-usb-af9005-objs := af9005.o af9005-fe.o
|
|
obj-$(CONFIG_DVB_USB_AF9005) += dvb-usb-af9005.o
|
|
|
|
dvb-usb-af9005-remote-objs := af9005-remote.o
|
|
obj-$(CONFIG_DVB_USB_AF9005_REMOTE) += dvb-usb-af9005-remote.o
|
|
|
|
dvb-usb-pctv452e-objs := pctv452e.o
|
|
obj-$(CONFIG_DVB_USB_PCTV452E) += dvb-usb-pctv452e.o
|
|
|
|
dvb-usb-dw2102-objs := dw2102.o
|
|
obj-$(CONFIG_DVB_USB_DW2102) += dvb-usb-dw2102.o
|
|
|
|
dvb-usb-dtv5100-objs := dtv5100.o
|
|
obj-$(CONFIG_DVB_USB_DTV5100) += dvb-usb-dtv5100.o
|
|
|
|
dvb-usb-cinergyT2-objs := cinergyT2-core.o cinergyT2-fe.o
|
|
obj-$(CONFIG_DVB_USB_CINERGY_T2) += dvb-usb-cinergyT2.o
|
|
|
|
dvb-usb-friio-objs := friio.o friio-fe.o
|
|
obj-$(CONFIG_DVB_USB_FRIIO) += dvb-usb-friio.o
|
|
|
|
dvb-usb-az6027-objs := az6027.o
|
|
obj-$(CONFIG_DVB_USB_AZ6027) += dvb-usb-az6027.o
|
|
|
|
dvb-usb-technisat-usb2-objs := technisat-usb2.o
|
|
obj-$(CONFIG_DVB_USB_TECHNISAT_USB2) += dvb-usb-technisat-usb2.o
|
|
|
|
ccflags-y += -I$(srctree)/drivers/media/dvb-core
|
|
ccflags-y += -I$(srctree)/drivers/media/dvb-frontends/
|
|
# due to tuner-xc3028
|
|
ccflags-y += -I$(srctree)/drivers/media/tuners
|
|
ccflags-y += -I$(srctree)/drivers/media/pci/ttpci
|