android_kernel_sony_sdm845/arch
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Roberto Sassu b476b7ea7a s390: fix strrchr() implementation
commit 8e0ab8e26b72a80e991c66a8abc16e6c856abe3d upstream.

Fix two problems found in the strrchr() implementation for s390
architectures: evaluate empty strings (return the string address instead of
NULL, if '\0' is passed as second argument); evaluate the first character
of non-empty strings (the current implementation stops at the second).

Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Cc: stable@vger.kernel.org
Reported-by: Heiko Carstens <hca@linux.ibm.com> (incorrect behavior with empty strings)
Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com>
Link: https://lore.kernel.org/r/20211005120836.60630-1-roberto.sassu@huawei.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-10-27 09:33:57 +02:00
..
alpha alpha: Declare virt_to_phys and virt_to_bus parameter as pointer to volatile 2021-10-06 10:23:40 +02:00
arc ARC: export clear_user_page() for modules 2021-09-22 11:43:10 +02:00
arm ARM: imx6: disable the GIC CPU interface before calling stby-poweroff sequence 2021-10-17 10:05:39 +02:00
arm64 arm64: Extend workaround for erratum 1024718 to all versions of Cortex-A55 2021-10-06 10:23:42 +02:00
avr32
blackfin pinctrl: adi2: Fix Kconfig build problem 2017-12-20 10:07:32 +01:00
c6x
cris
frv futex: Remove duplicated code and fix undefined behaviour 2018-05-19 10:27:00 +02:00
h8300 h8300: fix PREEMPTION build, TI_PRE_COUNT undefined 2021-02-23 13:59:16 +01:00
hexagon hexagon: use common DISCARDS macro 2021-07-20 16:21:15 +02:00
ia64 ia64: mca_drv: fix incorrect array size calculation 2021-07-20 16:21:00 +02:00
m32r
m68k m68k: Double cast io functions to unsigned long 2021-10-06 10:23:40 +02:00
metag
microblaze microblaze: Prevent the overflow of the start 2020-02-28 15:42:42 +01:00
mips MIPS: Malta: fix alignment of the devicetree buffer 2021-09-22 11:43:04 +02:00
mn10300 mn10300/misalignment: Use SIGSEGV SEGV_MAPERR to report a failed user copy 2018-02-17 13:21:20 +01:00
nios2 nios2: ksyms: Add missing symbol exports 2020-01-29 10:24:18 +01:00
openrisc openrisc: don't printk() unconditionally 2021-09-22 11:43:04 +02:00
parisc parisc: Use absolute_pointer() to define PAGE0 2021-10-06 10:23:40 +02:00
powerpc powerpc/fsl/dts: Fix phy-connection-type for fm1mac3 2021-10-17 10:05:39 +02:00
s390 s390: fix strrchr() implementation 2021-10-27 09:33:57 +02:00
score
sh sh: dma: fix kconfig dependency for G2_DMA 2021-01-30 13:27:15 +01:00
sparc sparc64: fix pci_iounmap() when CONFIG_PCI is not set 2021-10-09 13:25:59 +02:00
tile locking/x86: Remove the unused atomic_inc_short() methd 2020-01-12 11:24:19 +01:00
um um: fix error return code in winch_tramp() 2021-07-20 16:21:14 +02:00
unicore32
x86 perf/x86: Reset destroy callback on event init failure 2021-10-17 10:05:40 +02:00
xtensa xtensa: call irqchip_init only when CONFIG_USE_OF is selected 2021-10-17 10:05:39 +02:00
.gitignore
Kconfig cpu/hotplug: Provide knobs to control SMT 2018-08-15 18:14:46 +02:00