1
linux/drivers/uio
Saurabh Sengar fb1adbd7e5 uio_hv_generic: Fix kernel NULL pointer dereference in hv_uio_rescind
For primary VM Bus channels, primary_channel pointer is always NULL. This
pointer is valid only for the secondary channels. Also, rescind callback
is meant for primary channels only.

Fix NULL pointer dereference by retrieving the device_obj from the parent
for the primary channel.

Cc: stable@vger.kernel.org
Fixes: ca3cda6fcf ("uio_hv_generic: add rescind support")
Signed-off-by: Saurabh Sengar <ssengar@linux.microsoft.com>
Signed-off-by: Naman Jain <namjain@linux.microsoft.com>
Link: https://lore.kernel.org/r/20240829071312.1595-2-namjain@linux.microsoft.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-09-03 12:37:37 +02:00
..
Kconfig uio: pruss: Remove this driver 2024-04-11 14:39:56 +02:00
Makefile uio: pruss: Remove this driver 2024-04-11 14:39:56 +02:00
uio_aec.c uio: add missing MODULE_DESCRIPTION() macros 2024-06-04 17:39:12 +02:00
uio_cif.c uio: add missing MODULE_DESCRIPTION() macros 2024-06-04 17:39:12 +02:00
uio_dfl.c uio: dfl: add vendor-specific feature id 2023-05-31 19:00:37 +01:00
uio_dmem_genirq.c Fix build errors due to new UIO_MEM_DMA_COHERENT mess 2024-03-27 09:48:47 -07:00
uio_fsl_elbc_gpcm.c uio: fsl_elbc_gpcm: Convert to platform remove callback returning void 2024-04-11 14:38:59 +02:00
uio_hv_generic.c uio_hv_generic: Fix kernel NULL pointer dereference in hv_uio_rescind 2024-09-03 12:37:37 +02:00
uio_mf624.c uio: add missing MODULE_DESCRIPTION() macros 2024-06-04 17:39:12 +02:00
uio_netx.c uio: add missing MODULE_DESCRIPTION() macros 2024-06-04 17:39:12 +02:00
uio_pci_generic.c
uio_pdrv_genirq.c uio_pdrv_genirq: convert to use device_property APIs 2024-04-11 14:40:29 +02:00
uio_sercos3.c
uio.c uio: add missing MODULE_DESCRIPTION() macros 2024-06-04 17:39:12 +02:00