aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netback/interface.c
diff options
context:
space:
mode:
authorJuergen Gross <[email protected]>2021-04-23 05:40:38 +0000
committerJuergen Gross <[email protected]>2021-05-10 07:32:00 +0000
commit970655aa9b42461f8394e4457307005bdeee14d9 (patch)
tree3181bb4b00415833f5f2d3c39548bbd3189910d2 /drivers/net/xen-netback/interface.c
parentLinux 5.13-rc1 (diff)
downloadkernel-970655aa9b42461f8394e4457307005bdeee14d9.tar.gz
kernel-970655aa9b42461f8394e4457307005bdeee14d9.zip
xen/gntdev: fix gntdev_mmap() error exit path
Commit d3eeb1d77c5d0af ("xen/gntdev: use mmu_interval_notifier_insert") introduced an error in gntdev_mmap(): in case the call of mmu_interval_notifier_insert_locked() fails the exit path should not call mmu_interval_notifier_remove(), as this might result in NULL dereferences. One reason for failure is e.g. a signal pending for the running process. Fixes: d3eeb1d77c5d0af ("xen/gntdev: use mmu_interval_notifier_insert") Cc: [email protected] Reported-by: Marek Marczykowski-Górecki <[email protected]> Tested-by: Marek Marczykowski-Górecki <[email protected]> Signed-off-by: Juergen Gross <[email protected]> Reviewed-by: Luca Fancellu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Juergen Gross <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions