aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/task.c
diff options
context:
space:
mode:
authorSaurabh Sengar <[email protected]>2024-08-29 07:13:11 +0000
committerGreg Kroah-Hartman <[email protected]>2024-09-03 10:37:37 +0000
commitfb1adbd7e50f3d2de56d0a2bb0700e2e819a329e (patch)
tree62430cb7bcc706598a92f5fbc53eb10e636aba47 /rust/helpers/task.c
parentmisc: keba: Fix sysfs group creation (diff)
downloadkernel-fb1adbd7e50f3d2de56d0a2bb0700e2e819a329e.tar.gz
kernel-fb1adbd7e50f3d2de56d0a2bb0700e2e819a329e.zip
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: [email protected] Fixes: ca3cda6fcf1e ("uio_hv_generic: add rescind support") Signed-off-by: Saurabh Sengar <[email protected]> Signed-off-by: Naman Jain <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions