Re: [PATCH 2/2] xen/events: increment refcnt only if event channel is refcounted

2024-03-17 Thread Oleksandr Tyshchenko
On 13.03.24 09:14, Juergen Gross wrote: Hello Juergen > 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 >

[PATCH 2/2] xen/events: increment refcnt only if event channel is refcounted

2024-03-13 Thread Juergen Gross
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: