android_kernel_sony_sdm845/drivers/edac
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Dan Carpenter a6d367a631 EDAC/altera: Use the proper type for the IRQ status bits
[ Upstream commit 8faa1cf6ed82f33009f63986c3776cc48af1b7b2 ]

Smatch complains about the cast of a u32 pointer to unsigned long:

  drivers/edac/altera_edac.c:1878 altr_edac_a10_irq_handler()
  warn: passing casted pointer '&irq_status' to 'find_first_bit()'

This code wouldn't work on a 64 bit big endian system because it would
read past the end of &irq_status.

 [ bp: massage. ]

Fixes: 13ab8448d2 ("EDAC, altera: Add ECC Manager IRQ controller support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Thor Thayer <thor.thayer@linux.intel.com>
Cc: James Morse <james.morse@arm.com>
Cc: kernel-janitors@vger.kernel.org
Cc: linux-edac <linux-edac@vger.kernel.org>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: Tony Luck <tony.luck@intel.com>
Link: https://lkml.kernel.org/r/20190624134717.GA1754@mwanda
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-10-05 12:30:20 +02:00
..
altera_edac.c EDAC/altera: Use the proper type for the IRQ status bits 2019-10-05 12:30:20 +02:00
altera_edac.h EDAC, altera: Rename device trigger to common name 2016-09-01 08:55:24 +02:00
amd64_edac.c x86/cpu: Rename cpu_data.x86_mask to cpu_data.x86_stepping 2018-02-22 15:43:55 +01:00
amd64_edac.h EDAC, amd64: Add x86cpuid sanity check during init 2017-11-15 15:53:12 +01:00
amd64_edac_dbg.c
amd64_edac_inj.c
amd76x_edac.c
amd8111_edac.c
amd8111_edac.h
amd8131_edac.c
amd8131_edac.h
cell_edac.c
cpc925_edac.c
debugfs.c
e7xxx_edac.c
e752x_edac.c
edac_core.h
edac_device.c
edac_device_sysfs.c
edac_mc.c
edac_mc_sysfs.c EDAC: Fix global-out-of-bounds write when setting edac_mc_poll_msec 2019-08-04 09:33:23 +02:00
edac_module.c
edac_module.h EDAC: Fix global-out-of-bounds write when setting edac_mc_poll_msec 2019-08-04 09:33:23 +02:00
edac_pci.c
edac_pci_sysfs.c
edac_stub.c
fsl_ddr_edac.c EDAC, fsl_ddr: Fix error return code in fsl_mc_err_probe() 2016-09-09 19:27:22 +02:00
fsl_ddr_edac.h EDAC, fsl_ddr: Add missing DDR DRAM types 2016-09-01 10:28:01 +02:00
ghes_edac.c
highbank_l2_edac.c
highbank_mc_edac.c
i7core_edac.c EDAC, {i7core,sb,skx}_edac: Fix uncorrected error counting 2018-11-13 11:16:56 -08:00
i3000_edac.c
i3200_edac.c
i5000_edac.c EDAC, i5000, i5400: Fix definition of NRECMEMB register 2017-12-14 09:28:22 +01:00
i5100_edac.c
i5400_edac.c EDAC, i5000, i5400: Fix definition of NRECMEMB register 2017-12-14 09:28:22 +01:00
i7300_edac.c
i82443bxgx_edac.c
i82860_edac.c
i82875p_edac.c
i82975x_edac.c
ie31200_edac.c
Kconfig * Altera Arria10 enablement of NAND, DMA, USB, QSPI and SD-MMC FIFO 2016-10-04 12:06:26 -07:00
layerscape_edac.c EDAC, layerscape: Add Layerscape EDAC support 2016-09-01 10:28:03 +02:00
Makefile * Altera Arria10 enablement of NAND, DMA, USB, QSPI and SD-MMC FIFO 2016-10-04 12:06:26 -07:00
mce_amd.c x86/cpu: Rename cpu_data.x86_mask to cpu_data.x86_stepping 2018-02-22 15:43:55 +01:00
mce_amd.h
mpc85xx_edac.c EDAC: Remove NO_IRQ from powerpc-only drivers 2016-09-12 13:04:56 +02:00
mpc85xx_edac.h EDAC, fsl-ddr: Separate FSL DDR driver from MPC85xx 2016-09-01 10:28:00 +02:00
mv64x60_edac.c EDAC, mv64x60: Fix an error handling path 2018-04-13 19:48:30 +02:00
mv64x60_edac.h
octeon_edac-l2c.c
octeon_edac-lmc.c EDAC, octeon: Fix an uninitialized variable warning 2018-02-17 13:21:19 +01:00
octeon_edac-pc.c
octeon_edac-pci.c
pasemi_edac.c
ppc4xx_edac.c EDAC: Remove NO_IRQ from powerpc-only drivers 2016-09-12 13:04:56 +02:00
ppc4xx_edac.h
r82600_edac.c
sb_edac.c EDAC, {i7core,sb,skx}_edac: Fix uncorrected error counting 2018-11-13 11:16:56 -08:00
skx_edac.c EDAC, skx_edac: Fix logical channel intermediate decoding 2018-11-13 11:16:56 -08:00
synopsys_edac.c
tile_edac.c
wq.c EDAC, wq: Remove deprecated create_singlethread_workqueue() 2016-08-15 07:21:29 +02:00
x38_edac.c
xgene_edac.c