linux/arch/powerpc/platforms/pasemi
Kunwu Chan 9e5c53d75c powerpc/pasemi: Add a null pointer check to the pas_setup_mce_regs
kasprintf() returns a pointer to dynamically allocated memory
which can be NULL upon failure. Ensure the allocation was successful
by checking the pointer validity.

Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20240117091706.153431-1-chentao@kylinos.cn
2026-09-10 13:19:25 +05:30
..
dma_lib.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
gpio_mdio.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
idle.c powerpc updates for 5.15 2021-09-03 11:22:50 -07:00
iommu.c powerpc: Use of_property_read_bool() for boolean properties 2023-03-30 23:36:35 +11:00
Kconfig powerpc/64s: Make hash MMU support configurable 2021-12-09 22:40:24 +11:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
misc.c powerpc/pasemi: Use strscpy instead of strlcpy 2022-09-06 11:03:04 +10:00
msi.c powerpc/msi: Fix deassociation of MSI descriptors 2022-12-17 10:58:48 +00:00
pasemi.h powerpc/pasemi: Remove obsoleted declaration for pas_pci_irq_fixup() 2024-08-30 21:05:30 +10:00
pci.c powerpc/pasemi: Drop redundant res assignment 2026-05-06 07:49:19 +05:30
powersave.S treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 333 2019-06-05 17:37:06 +02:00
setup.c powerpc/pasemi: Add a null pointer check to the pas_setup_mce_regs 2026-09-10 13:19:25 +05:30
time.c powerpc: address missing-prototypes warnings 2023-08-02 22:22:19 +10:00