linux/drivers/staging/most
Colin Ian King e55677b9ef staging: most: video: fix registration of an empty comp core_component
[ Upstream commit 1f447e51c0 ]

Currently we have structrues comp (which is empty) and comp_info being
used to register and deregister the component.  This mismatch in naming
occurred from a previous commit that renamed aim_info to comp. Fix this
to use consistent component naming in line with most/net, most/sound etc.

This fixes the message two issues, one with a null empty name when
loading the module:

[ 1485.269515] most_core: registered new core component (null)

and an Oops when removing the module:

[ 1485.277971] BUG: unable to handle kernel NULL pointer dereference at 0000000000000008
[ 1485.278648] PGD 0 P4D 0
[ 1485.279253] Oops: 0002 [#2] SMP PTI
[ 1485.279847] CPU: 1 PID: 32629 Comm: modprobe Tainted: P      D WC OE     4.18.0-8-generic #9
[ 1485.280442] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 0.0.0 02/06/2015
[ 1485.281040] RIP: 0010:most_deregister_component+0x3c/0x70 [most_core]
.. etc

Fixes: 1b10a0316e ("staging: most: video: remove aim designators")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2018-11-21 09:19:11 +01:00
..
cdev staging: most: cdev: fix race condition 2018-05-08 13:41:51 +02:00
dim2 staging: most: fix sparse warning Using plain integer as NULL pointer 2018-06-28 22:08:51 +09:00
Documentation staging: most: add ABI documentation 2017-11-27 09:20:37 +01:00
i2c staging: most: i2c: reduce parameters inconsistency 2018-05-08 13:41:49 +02:00
net staging: most: convert macro to static function 2018-01-08 16:36:00 +01:00
sound ALSA: pcm: Nuke snd_pcm_lib_mmap_vmalloc() 2018-07-18 08:24:29 +02:00
usb staging: most: usb: remove local variable 2018-05-08 13:41:51 +02:00
video staging: most: video: fix registration of an empty comp core_component 2018-11-21 09:19:11 +01:00
core.c staging: most: make interface drivers allocate coherent memory 2018-05-08 13:41:50 +02:00
core.h staging: most: sound: call snd_card_new with struct device 2018-05-08 13:41:50 +02:00
Kconfig staging: most: video: rename module 2017-11-27 09:20:34 +01:00
Makefile staging: most: fix Makefile 2017-11-28 13:34:59 +01:00
TODO Staging: most: add MOST driver's core module 2015-07-24 13:47:32 -07:00