Skip to content
Commit 6f0605db authored by 蒋家盛's avatar 蒋家盛 Committed by Bruce Ashfield
Browse files

clk: imx: Add check for kcalloc



As the potential failure of the kcalloc(),
it should be better to check it in order to
avoid the dereference of the NULL pointer.

Fixes: 379c9a24 ("clk: imx: Fix reparenting of UARTs not associated with stdout")
Signed-off-by: default avatarJiasheng Jiang <jiasheng@iscas.ac.cn>
Reviewed-by: default avatarAbel Vesa <abel.vesa@nxp.com>
Link: https://lore.kernel.org/r/20220310080257.1988412-1-jiasheng@iscas.ac.cn


Signed-off-by: default avatarAbel Vesa <abel.vesa@nxp.com>

CVE-2022-3114
Signed-off-by: default avatarLibo Chen <libo.chen.cn@windriver.com>
Signed-off-by: default avatarBruce Ashfield <bruce.ashfield@gmail.com>
parent 5b837b9e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment