linux/arch/powerpc/sysdev
Michael Ellerman 686978b15c powerpc/xive: Fix missing check of rc != OPAL_BUSY
Dan Carpenter noticed that the code in __xive_native_disable_queue() has a for
loop with an unconditional break in the middle, which doesn't make a lot of
sense.

What the code's supposed to do is loop as long as OPAL says it's busy, if we get
any other return code, either success or failure, then we should break the loop.

So add the missing check.

Fixes: 243e25112d ("powerpc/xive: Native exploitation of the XIVE interrupt controller")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2017-04-20 14:43:19 +10:00
..
ge powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
xics powerpc: Change the doorbell IPI calling convention 2017-04-13 23:34:33 +10:00
xive powerpc/xive: Fix missing check of rc != OPAL_BUSY 2017-04-20 14:43:19 +10:00
6xx-suspend.S
axonram.c axonram: Fix gendisk handling 2017-03-08 10:55:40 -07:00
cpm1.c soc/fsl/qe: fix Oops on CPM1 (and likely CPM2) 2016-09-25 02:38:52 -05:00
cpm2.c soc/fsl/qe: fix Oops on CPM1 (and likely CPM2) 2016-09-25 02:38:52 -05:00
cpm2_pic.c powerpc/cpm2: Use irq_set_handler_locked() 2015-09-16 15:43:10 +02:00
cpm2_pic.h
cpm_common.c soc/fsl/qe: fix Oops on CPM1 (and likely CPM2) 2016-09-25 02:38:52 -05:00
dart.h
dart_iommu.c dma-mapping: use unsigned long for dma_attrs 2016-08-04 08:50:07 -04:00
dcr-low.S ppc: move exports to definitions 2016-08-07 23:50:09 -04:00
dcr.c
ehv_pic.c powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
fsl_85xx_cache_ctlr.h
fsl_85xx_cache_sram.c
fsl_85xx_l2ctlr.c powerpc/85xx: Don't report SRAM to L2 cache fallback as error 2016-07-08 19:55:34 -05:00
fsl_gtm.c powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
fsl_lbc.c powerpc/fsl-lbc: use DEFINE_SPINLOCK() 2016-12-09 23:08:40 -06:00
fsl_mpic_err.c powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
fsl_mpic_timer_wakeup.c
fsl_msi.c powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
fsl_msi.h
fsl_pci.c powerpc/fsl_pci: Size upper inbound window based on RAM size 2016-09-25 02:38:54 -05:00
fsl_pci.h EDAC, mpc85xx: Make mpc85xx-pci-edac a platform device 2015-12-11 16:56:16 +01:00
fsl_pmc.c powerpc/fsl_pmc: use builtin_platform_driver 2016-12-04 19:51:44 -06:00
fsl_rcpm.c powerpc/rcpm: Fix build break when SMP=n 2016-03-16 15:22:32 +11:00
fsl_rio.c powerpc: Add support for relative exception tables 2016-11-14 11:11:51 +11:00
fsl_rio.h rapidio: add global inbound port write interfaces 2016-03-22 15:36:02 -07:00
fsl_rmu.c rapidio: add global inbound port write interfaces 2016-03-22 15:36:02 -07:00
fsl_soc.c powerpc/fsl_soc: improve and simplify get_baudrate 2016-11-23 01:23:37 -06:00
fsl_soc.h powerpc: Convert fsl_rstcr_restart to a reset handler 2016-09-25 02:38:50 -05:00
grackle.c
i8259.c powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
indirect_pci.c
ipic.c powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
ipic.h
Kconfig powerpc/xive: Native exploitation of the XIVE interrupt controller 2017-04-10 21:41:34 +10:00
Makefile powerpc/xive: Native exploitation of the XIVE interrupt controller 2017-04-10 21:41:34 +10:00
micropatch.c
mmio_nvram.c powerpc/sparse: Make a bunch of things static 2016-09-13 17:35:47 +10:00
mpc5xxx_clocks.c powerpc/mpc5xxx: Use of_get_next_parent to simplify code 2015-10-15 20:32:01 +11:00
mpc8xx_pic.c powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
mpc8xx_pic.h
mpic.c powerpc/mpic: use of_property_read_bool 2016-09-25 02:38:51 -05:00
mpic.h
mpic_msgr.c powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
mpic_msi.c irqdomain: Use irq_domain_get_of_node() instead of direct field access 2015-10-13 19:01:23 +02:00
mpic_timer.c
mpic_u3msi.c powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
msi_bitmap.c treewide: replace obsolete _refok by __ref 2016-08-02 17:31:41 -04:00
mv64x60.h
mv64x60_dev.c
mv64x60_pci.c
mv64x60_pic.c powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
mv64x60_udbg.c
of_rtc.c
pmi.c powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
ppc4xx_cpm.c
ppc4xx_gpio.c powerpc: ppc4xx: drop unused variable 2016-03-31 09:14:22 +02:00
ppc4xx_hsta_msi.c powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
ppc4xx_msi.c powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
ppc4xx_ocm.c
ppc4xx_pci.c
ppc4xx_pci.h
ppc4xx_soc.c powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
rtc_cmos_setup.c
scom.c powerpc: Create asm/debugfs.h and move powerpc_debugfs_root there 2017-04-11 07:46:03 +10:00
simple_gpio.c powerpc: simple-gpio: use gpiochip data pointer 2016-03-30 10:53:23 +02:00
simple_gpio.h
tsi108_dev.c
tsi108_pci.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
udbg_memcons.c
uic.c powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
xilinx_intc.c powerpc/virtex: Use generic xilinx irqchip driver 2016-11-29 09:14:50 +00:00
xilinx_pci.c