Sean Young
3696eddd45
media: rc: ensure lirc is initialized before registering input device
commit 080d89f522e2baddb4fbbd1af4b67b5f92537ef8 upstream.
Once rc_open is called on the input device, lirc events can be delivered.
Ensure lirc is ready to do so else we might get this:
Registered IR keymap rc-hauppauge
rc rc0: Hauppauge WinTV PVR-350 as
/devices/pci0000:00/0000:00:1e.0/0000:04:00.0/i2c-0/0-0018/rc/rc0
input: Hauppauge WinTV PVR-350 as
/devices/pci0000:00/0000:00:1e.0/0000:04:00.0/i2c-0/0-0018/rc/rc0/input9
BUG: kernel NULL pointer dereference, address: 0000000000000038
PGD 0 P4D 0
Oops: 0000 [#1] SMP PTI
CPU: 1 PID: 17 Comm: kworker/1:0 Not tainted 5.3.11-300.fc31.x86_64 #1
Hardware name: /DG43NB, BIOS NBG4310H.86A.0096.2009.0903.1845 09/03/2009
Workqueue: events ir_work [ir_kbd_i2c]
RIP: 0010:ir_lirc_scancode_event+0x3d/0xb0
Code: a6 b4 07 00 00 49 81 c6 b8 07 00 00 55 53 e8 ba a7 9d ff 4c 89
e7 49 89 45 00 e8 5e 7a 25 00 49 8b 1e 48 89 c5 4c 39 f3 74 58 <8b> 43
38 8b 53 40 89 c1 2b 4b 3c 39 ca 72 41 21 d0 49 8b 7d 00 49
RSP: 0018:ffffaae2000b3d88 EFLAGS: 00010017
RAX: 0000000000000002 RBX: 0000000000000000 RCX: 0000000000000019
RDX: 0000000000000001 RSI: 006e801b1f26ce6a RDI: ffff9e39797c37b4
RBP: 0000000000000002 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000001 R11: 0000000000000001 R12: ffff9e39797c37b4
R13: ffffaae2000b3db8 R14: ffff9e39797c37b8 R15: ffff9e39797c33d8
FS: 0000000000000000(0000) GS:ffff9e397b680000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000038 CR3: 0000000035844000 CR4: 00000000000006e0
Call Trace:
ir_do_keydown+0x8e/0x2b0
rc_keydown+0x52/0xc0
ir_work+0xb8/0x130 [ir_kbd_i2c]
process_one_work+0x19d/0x340
worker_thread+0x50/0x3b0
kthread+0xfb/0x130
? process_one_work+0x340/0x340
? kthread_park+0x80/0x80
ret_from_fork+0x35/0x40
Modules linked in: rc_hauppauge tuner msp3400 saa7127 saa7115 ivtv(+)
tveeprom cx2341x v4l2_common videodev mc i2c_algo_bit ir_kbd_i2c
ip_tables firewire_ohci e1000e serio_raw firewire_core ata_generic
crc_itu_t pata_acpi pata_jmicron fuse
CR2: 0000000000000038
---[ end trace c67c2697a99fa74b ]---
RIP: 0010:ir_lirc_scancode_event+0x3d/0xb0
Code: a6 b4 07 00 00 49 81 c6 b8 07 00 00 55 53 e8 ba a7 9d ff 4c 89
e7 49 89 45 00 e8 5e 7a 25 00 49 8b 1e 48 89 c5 4c 39 f3 74 58 <8b> 43
38 8b 53 40 89 c1 2b 4b 3c 39 ca 72 41 21 d0 49 8b 7d 00 49
RSP: 0018:ffffaae2000b3d88 EFLAGS: 00010017
RAX: 0000000000000002 RBX: 0000000000000000 RCX: 0000000000000019
RDX: 0000000000000001 RSI: 006e801b1f26ce6a RDI: ffff9e39797c37b4
RBP: 0000000000000002 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000001 R11: 0000000000000001 R12: ffff9e39797c37b4
R13: ffffaae2000b3db8 R14: ffff9e39797c37b8 R15: ffff9e39797c33d8
FS: 0000000000000000(0000) GS:ffff9e397b680000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000038 CR3: 0000000035844000 CR4: 00000000000006e0
rc rc0: lirc_dev: driver ir_kbd_i2c registered at minor = 0, scancode
receiver, no transmitter
tuner-simple 0-0061: creating new instance
tuner-simple 0-0061: type set to 2 (Philips NTSC (FI1236,FM1236 and
compatibles))
ivtv0: Registered device video0 for encoder MPG (4096 kB)
ivtv0: Registered device video32 for encoder YUV (2048 kB)
ivtv0: Registered device vbi0 for encoder VBI (1024 kB)
ivtv0: Registered device video24 for encoder PCM (320 kB)
ivtv0: Registered device radio0 for encoder radio
ivtv0: Registered device video16 for decoder MPG (1024 kB)
ivtv0: Registered device vbi8 for decoder VBI (64 kB)
ivtv0: Registered device vbi16 for decoder VOUT
ivtv0: Registered device video48 for decoder YUV (1024 kB)
Cc: stable@vger.kernel.org
Tested-by: Nick French <nickfrench@gmail.com>
Reported-by: Nick French <nickfrench@gmail.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
2020-02-11 04:34:08 -08:00 |
| .. |
|
accessibility
|
|
|
|
acpi
|
ACPI / battery: Deal better with neither design nor full capacity not being reported
|
2020-02-11 04:33:59 -08:00 |
|
amba
|
|
|
|
android
|
binder: Handle start==NULL in binder_update_page_range()
|
2019-12-13 08:52:52 +01:00 |
|
ata
|
ahci: Do not export local variable ahci_em_messages
|
2020-01-27 14:51:07 +01:00 |
|
atm
|
atm: eni: fix uninitialized variable warning
|
2020-02-01 09:37:09 +00:00 |
|
auxdisplay
|
|
|
|
base
|
PM: core: Fix handling of devices deleted during system-wide resume
|
2020-02-11 04:34:03 -08:00 |
|
bcma
|
bcma: fix incorrect update of BCMA_CORE_PCI_MDIO_DATA
|
2020-01-27 14:51:09 +01:00 |
|
block
|
signal: Allow cifs and drbd to receive their terminating signals
|
2020-01-27 14:51:05 +01:00 |
|
bluetooth
|
Bluetooth: btusb: fix PM leak in error case of setup
|
2020-01-09 10:19:04 +01:00 |
|
bus
|
bus: ti-sysc: Fix sysc_unprepare() when no clocks have been allocated
|
2020-01-27 14:50:36 +01:00 |
|
cdrom
|
cdrom: respect device capabilities during opening action
|
2020-01-04 19:13:12 +01:00 |
|
char
|
ttyprintk: fix a potential deadlock in interrupt context issue
|
2020-02-05 14:43:39 +00:00 |
|
clk
|
clk: mmp2: Fix the order of timer mux parents
|
2020-02-05 14:43:43 +00:00 |
|
clocksource
|
clocksource/drivers/exynos_mct: Fix error path in timer resources initialization
|
2020-01-27 14:50:27 +01:00 |
|
connector
|
|
|
|
cpufreq
|
cpufreq: brcmstb-avs-cpufreq: Fix types for voltage/frequency
|
2020-01-27 14:50:53 +01:00 |
|
cpuidle
|
cpuidle: Do not unset the driver if it is there already
|
2019-12-17 20:35:00 +01:00 |
|
crypto
|
crypto: picoxcell - adjust the position of tasklet_init and fix missed tasklet_kill
|
2020-02-11 04:34:05 -08:00 |
|
dax
|
|
|
|
dca
|
|
|
|
devfreq
|
PM / devfreq: Add new name attribute for sysfs
|
2020-02-05 14:43:34 +00:00 |
|
dio
|
|
|
|
dma
|
dmaengine: ti: edma: fix missed failure handling
|
2020-01-27 14:51:22 +01:00 |
|
dma-buf
|
dma-buf: Fix memory leak in sync_file_merge()
|
2019-12-21 10:57:38 +01:00 |
|
edac
|
EDAC/mc: Fix edac_mc_find() in case no device is found
|
2020-01-27 14:50:48 +01:00 |
|
eisa
|
|
|
|
extcon
|
extcon: sm5502: Reset registers during initialization
|
2019-12-31 16:35:11 +01:00 |
|
firewire
|
net: add annotations on hh->hh_len lockless accesses
|
2020-01-09 10:19:09 +01:00 |
|
firmware
|
firmware: dmi: Fix unlikely out-of-bounds read in save_mem_devices
|
2020-01-27 14:51:19 +01:00 |
|
fmc
|
|
|
|
fpga
|
|
|
|
fsi
|
fsi: sbefifo: Don't fail operations when in SBE IPL state
|
2020-01-27 14:51:00 +01:00 |
|
gnss
|
|
|
|
gpio
|
gpio: max77620: Add missing dependency on GPIOLIB_IRQCHIP
|
2020-02-01 09:37:09 +00:00 |
|
gpu
|
drm/rect: Avoid division by zero
|
2020-02-11 04:34:07 -08:00 |
|
hid
|
HID: steam: Fix input device disappearing
|
2020-02-01 09:37:09 +00:00 |
|
hsi
|
|
|
|
hv
|
hv_balloon: Balloon up according to request page number
|
2020-02-11 04:34:01 -08:00 |
|
hwmon
|
hwmon: (nct7802) Fix voltage limits to wrong registers
|
2020-01-29 16:43:21 +01:00 |
|
hwspinlock
|
|
|
|
hwtracing
|
coresight: tmc-etf: Do not call smp_processor_id from preemptible
|
2020-01-29 16:43:23 +01:00 |
|
i2c
|
i2c: stm32f7: report dma error during probe
|
2020-01-27 14:51:21 +01:00 |
|
ide
|
|
|
|
idle
|
|
|
|
iio
|
iio: st_gyro: Correct data for LSM9DS0 gyro
|
2020-02-01 09:37:04 +00:00 |
|
infiniband
|
scsi: RDMA/isert: Fix a recently introduced regression related to logout
|
2020-01-29 16:43:21 +01:00 |
|
input
|
Input: sun4i-ts - add a check for devm_thermal_zone_of_sensor_register
|
2020-01-29 16:43:20 +01:00 |
|
iommu
|
iommu/amd: Support multiple PCI DMA aliases in IRQ Remapping
|
2020-02-01 09:37:10 +00:00 |
|
ipack
|
|
|
|
irqchip
|
irqchip: Place CONFIG_SIFIVE_PLIC into the menu
|
2020-01-23 08:21:36 +01:00 |
|
isdn
|
staging: gigaset: add endpoint-type sanity check
|
2019-12-17 20:34:33 +01:00 |
|
leds
|
led: triggers: Fix dereferencing of null pointer
|
2020-01-27 14:51:10 +01:00 |
|
lightnvm
|
lightnvm: pblk: fix lock order in pblk_rb_tear_down_check
|
2020-01-27 14:50:45 +01:00 |
|
macintosh
|
macintosh/windfarm_smu_sat: Fix debug output
|
2019-12-01 09:16:37 +01:00 |
|
mailbox
|
mailbox: qcom-apcs: fix max_register value
|
2020-01-27 14:51:14 +01:00 |
|
mcb
|
|
|
|
md
|
dm writecache: fix incorrect flush sequence when doing SSD mode commit
|
2020-02-11 04:34:04 -08:00 |
|
media
|
media: rc: ensure lirc is initialized before registering input device
|
2020-02-11 04:34:08 -08:00 |
|
memory
|
memory: tegra: Don't invoke Tegra30+ specific memory timing setup on Tegra20
|
2020-01-27 14:50:13 +01:00 |
|
memstick
|
memstick: jmb38x_ms: Fix an error handling path in 'jmb38x_ms_probe()'
|
2019-10-29 09:20:07 +01:00 |
|
message
|
scsi: mptfusion: Fix double fetch bug in ioctl
|
2020-01-23 08:21:28 +01:00 |
|
mfd
|
mfd: axp20x: Mark AXP20X_VBUS_IPSOUT_MGMT as volatile
|
2020-02-11 04:34:01 -08:00 |
|
misc
|
mei: me: add comet point (lake) H device ids
|
2020-02-01 09:37:04 +00:00 |
|
mmc
|
mmc: sdhci-of-at91: fix memleak on clk_get failure
|
2020-02-11 04:34:00 -08:00 |
|
mtd
|
mtd: devices: fix mchp23k256 read and write
|
2020-01-23 08:21:37 +01:00 |
|
mux
|
|
|
|
net
|
mwifiex: fix unbalanced locking in mwifiex_process_country_ie()
|
2020-02-11 04:34:07 -08:00 |
|
nfc
|
NFC: pn533: fix bulk-message timeout
|
2020-01-23 08:21:34 +01:00 |
|
ntb
|
ntb_hw_switchtec: potential shift wrapping bug in switchtec_ntb_init_sndev()
|
2020-01-27 14:50:55 +01:00 |
|
nubus
|
|
|
|
nvdimm
|
libnvdimm/btt: fix variable 'rc' set but not used
|
2020-01-04 19:13:00 +01:00 |
|
nvme
|
nvme: retain split access workaround for capability reads
|
2020-01-27 14:51:16 +01:00 |
|
nvmem
|
nvmem: imx-ocotp: Change TIMING calculation to u-boot algorithm
|
2020-01-27 14:50:58 +01:00 |
|
of
|
of: Add OF_DMA_DEFAULT_COHERENT & select it on powerpc
|
2020-02-11 04:34:03 -08:00 |
|
opp
|
OPP: Fix missing debugfs supply directory for OPPs
|
2020-01-27 14:50:04 +01:00 |
|
oprofile
|
|
|
|
parisc
|
parisc: Disable HP HSC-PCI Cards to prevent kernel crash
|
2019-10-05 13:10:04 +02:00 |
|
parport
|
parport: load lowlevel driver if ports not found
|
2019-12-31 16:36:01 +01:00 |
|
pci
|
PCI: keystone: Fix link training retries initiation
|
2020-02-11 04:34:00 -08:00 |
|
pcmcia
|
|
|
|
perf
|
|
|
|
phy
|
phy: cpcap-usb: Prevent USB line glitches from waking up modem
|
2020-02-01 09:37:07 +00:00 |
|
pinctrl
|
pinctrl: iproc-gpio: Fix incorrect pinconf configurations
|
2020-01-27 14:51:12 +01:00 |
|
platform
|
platform/x86: intel_scu_ipc: Fix interrupt support
|
2020-02-11 04:33:57 -08:00 |
|
pnp
|
|
|
|
power
|
power: supply: ltc2941-battery-gauge: fix use-after-free
|
2020-02-11 04:34:02 -08:00 |
|
powercap
|
|
|
|
pps
|
|
|
|
ps3
|
|
|
|
ptp
|
ptp: free ptp device pin descriptors properly
|
2020-01-23 08:21:35 +01:00 |
|
pwm
|
pwm: meson: Don't disable PWM when setting duty repeatedly
|
2020-01-27 14:50:47 +01:00 |
|
rapidio
|
drivers/rapidio/rio_cm.c: fix potential oops in riocm_ch_listen()
|
2020-01-27 14:50:31 +01:00 |
|
ras
|
|
|
|
regulator
|
regulator: tps65086: Fix tps65086_ldoa1_ranges for selector 0xB
|
2020-01-27 14:50:33 +01:00 |
|
remoteproc
|
remoteproc: qcom: q6v5-mss: Add missing regulator for MSM8996
|
2020-01-27 14:50:10 +01:00 |
|
reset
|
reset: Fix memory leak in reset_control_array_put()
|
2019-12-05 09:19:36 +01:00 |
|
rpmsg
|
rpmsg: glink: Free pending deferred work on remove
|
2019-12-21 10:57:30 +01:00 |
|
rtc
|
rtc: pcf2127: bugfix: read rtc disables watchdog
|
2020-01-27 14:51:07 +01:00 |
|
s390
|
s390/qeth: Fix initialization of vnicc cmd masks during set online
|
2020-01-27 14:51:18 +01:00 |
|
sbus
|
|
|
|
scsi
|
scsi: qla2xxx: Fix unbound NVME response length
|
2020-02-11 04:34:05 -08:00 |
|
sfi
|
|
|
|
sh
|
|
|
|
siox
|
|
|
|
slimbus
|
slimbus: ngd: Fix build error on x86
|
2019-12-13 08:51:54 +01:00 |
|
sn
|
|
|
|
soc
|
soc: ti: wkup_m3_ipc: Fix race condition with rproc_boot
|
2020-02-05 14:43:41 +00:00 |
|
soundwire
|
soundwire: intel: fix PDI/stream mapping for Bulk
|
2019-12-31 16:35:55 +01:00 |
|
spi
|
spi: spi-dw: Add lock protect dw_spi rx/tx to prevent concurrent calls
|
2020-02-01 09:37:08 +00:00 |
|
spmi
|
|
|
|
ssb
|
|
|
|
staging
|
staging: vt6656: Fix false Tx excessive retries reporting.
|
2020-02-01 09:37:03 +00:00 |
|
target
|
scsi: RDMA/isert: Fix a recently introduced regression related to logout
|
2020-01-29 16:43:21 +01:00 |
|
tc
|
|
|
|
tee
|
tee: optee: Fix compilation issue with nommu
|
2020-02-05 14:43:50 +00:00 |
|
thermal
|
thermal: cpu_cooling: Actually trace CPU load in thermal_power_cpu_get_power
|
2020-01-27 14:50:48 +01:00 |
|
thunderbolt
|
thunderbolt: Power cycle the router if NVM authentication fails
|
2019-12-05 09:21:27 +01:00 |
|
tty
|
serial: 8250_bcm2835aux: Fix line mismatch on driver unbind
|
2020-02-01 09:37:03 +00:00 |
|
uio
|
driver: uio: fix possible use-after-free in __uio_register_device
|
2020-01-27 14:50:17 +01:00 |
|
usb
|
usb: gadget: f_ecm: Use atomic_t to track in-flight request
|
2020-02-11 04:33:56 -08:00 |
|
uwb
|
|
|
|
vfio
|
vfio/mdev: Fix aborting mdev child device removal if one fails
|
2020-01-27 14:50:46 +01:00 |
|
vhost
|
vhost/test: stop device before reset
|
2020-01-27 14:51:19 +01:00 |
|
video
|
backlight: pwm_bl: Fix heuristic to determine number of brightness levels
|
2020-01-27 14:50:58 +01:00 |
|
virt
|
virt: vbox: fix memory leak in hgcm_call_preprocess_linaddr
|
2019-11-06 13:06:04 +01:00 |
|
virtio
|
virtio-balloon: fix managed page counts when migrating pages between zones
|
2019-12-17 20:34:43 +01:00 |
|
visorbus
|
|
|
|
vlynq
|
|
|
|
vme
|
|
|
|
w1
|
w1: IAD Register is yet readable trough iad sys file. Fix snprintf (%u for unsigned, count for max size).
|
2019-12-01 09:16:22 +01:00 |
|
watchdog
|
watchdog: rn5t618_wdt: fix module aliases
|
2020-02-01 09:37:08 +00:00 |
|
xen
|
net: add {READ|WRITE}_ONCE() annotations on ->rskq_accept_head
|
2020-01-27 14:51:18 +01:00 |
|
zorro
|
|
|
|
Kconfig
|
|
|
|
Makefile
|
|
|