diff options
author | Jason Andryuk <jason.andryuk@amd.com> | 2025-08-27 20:36:01 -0400 |
---|---|---|
committer | Juergen Gross <jgross@suse.com> | 2025-09-09 09:09:30 +0200 |
commit | 08df2d7dd4ab2db8a172d824cda7872d5eca460a (patch) | |
tree | 5239088c6fee60b06314759c47b8d51e5ad3635e /rust/helpers/helpers.c | |
parent | 29c2f18d4f3fa444e3b8972b45d548cf521f8f15 (diff) |
xen/events: Cleanup find_virq() return codes
rc is overwritten by the evtchn_status hypercall in each iteration, so
the return value will be whatever the last iteration is. This could
incorrectly return success even if the event channel was not found.
Change to an explicit -ENOENT for an un-found virq and return 0 on a
successful match.
Fixes: 62cc5fc7b2e0 ("xen/pv-on-hvm kexec: rebind virqs to existing eventchannel ports")
Cc: stable@vger.kernel.org
Signed-off-by: Jason Andryuk <jason.andryuk@amd.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Message-ID: <20250828003604.8949-2-jason.andryuk@amd.com>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions