]> git.baikalelectronics.ru Git - kernel.git/commit
xen/events: don't use chip_data for legacy IRQs
authorJuergen Gross <jgross@suse.com>
Wed, 30 Sep 2020 09:16:14 +0000 (11:16 +0200)
committerJuergen Gross <jgross@suse.com>
Thu, 1 Oct 2020 12:45:26 +0000 (14:45 +0200)
commit4d34ac852ecffe16f8d306bd7c8f435ed58ca952
tree3889b42752fa0564f42a3d1c3ac98071485a9765
parent47baade2e61311823a6410984052b21729468ddf
xen/events: don't use chip_data for legacy IRQs

Since commit 89a616661080 ("XEN uses irqdesc::irq_data_common::handler_data to store a per interrupt XEN data pointer which contains XEN specific information.")
Xen is using the chip_data pointer for storing IRQ specific data. When
running as a HVM domain this can result in problems for legacy IRQs, as
those might use chip_data for their own purposes.

Use a local array for this purpose in case of legacy IRQs, avoiding the
double use.

Cc: stable@vger.kernel.org
Fixes: 89a616661080 ("XEN uses irqdesc::irq_data_common::handler_data to store a per interrupt XEN data pointer which contains XEN specific information.")
Signed-off-by: Juergen Gross <jgross@suse.com>
Tested-by: Stefan Bader <stefan.bader@canonical.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Link: https://lore.kernel.org/r/20200930091614.13660-1-jgross@suse.com
Signed-off-by: Juergen Gross <jgross@suse.com>
drivers/xen/events/events_base.c