commit 5d7f58ee08434a33340f75ac7ac5071eea9673b3 upstream. devm_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> Link: https://lore.kernel.org/r/20240118054257.200814-1-chentao@kylinos.cn Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> [Xiangyu: Modified to apply on 6.1.y] Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
|---|---|---|
| .. | ||
| k3-ringacc.c | ||
| k3-socinfo.c | ||
| Kconfig | ||
| knav_dma.c | ||
| knav_qmss.h | ||
| knav_qmss_acc.c | ||
| knav_qmss_queue.c | ||
| Makefile | ||
| omap_prm.c | ||
| pm33xx.c | ||
| pruss.c | ||
| smartreflex.c | ||
| ti_sci_inta_msi.c | ||
| ti_sci_pm_domains.c | ||
| wkup_m3_ipc.c | ||