powerpc/xive: Fix error handling when allocating an IPI
authorCédric Le Goater <clg@kaod.org>
Thu, 1 Jul 2021 15:24:12 +0000 (17:24 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 5 Jul 2021 12:23:25 +0000 (22:23 +1000)
commit3f601608b71c3ca1e199898cd16f09d707fedb56
treebdd494f80e5b39d8bb1b282c031c79abf2a7dbf2
parent307e5042c7bdae15308ef2e9b848833b84122eb0
powerpc/xive: Fix error handling when allocating an IPI

This is a smatch warning:

  arch/powerpc/sysdev/xive/common.c:1161 xive_request_ipi() warn: unsigned 'xid->irq' is never less than zero.

Fixes: fd6db2892eba ("powerpc/xive: Modernize XIVE-IPI domain with an 'alloc' handler")
Cc: stable@vger.kernel.org # v5.13
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210701152412.1507612-1-clg@kaod.org
arch/powerpc/sysdev/xive/common.c