summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorJuergen Gross <jgross@suse.com>2024-03-13 10:14:09 +0300
committerSasha Levin <sashal@kernel.org>2024-03-27 01:17:34 +0300
commit95af4cb3d0a7f4e3c67a79a587f17365f33d209c (patch)
treeda7539601d907cd38665c685af4b158c8b7bab58 /net
parent9e2d4b58c1da48a32905802aaeadba7084b46895 (diff)
downloadlinux-95af4cb3d0a7f4e3c67a79a587f17365f33d209c.tar.xz
xen/events: increment refcnt only if event channel is refcounted
[ Upstream commit d277f9d82802223f242cd9b60c988cfdda1d6be0 ] In bind_evtchn_to_irq_chip() don't increment the refcnt of the event channel blindly. In case the event channel is NOT refcounted, issue a warning instead. Add an additional safety net by doing the refcnt increment only if the caller has specified IRQF_SHARED in the irqflags parameter. Fixes: 9e90e58c11b7 ("xen: evtchn: Allow shared registration of IRQ handers") Signed-off-by: Juergen Gross <jgross@suse.com> Reviewed-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com> Link: https://lore.kernel.org/r/20240313071409.25913-3-jgross@suse.com Signed-off-by: Juergen Gross <jgross@suse.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions