Skip to content
Commit 3bec2f77 authored by Yuan Can's avatar Yuan Can Committed by Greg Kroah-Hartman
Browse files

serial: pic32: Add checks for devm_clk_get() in pic32_uart_probe()



As the devm_clk_get() may return ERR_PTR, its return value needs to be
checked to avoid invalid poineter dereference.

Signed-off-by: default avatarYuan Can <yuancan@huawei.com>
Link: https://lore.kernel.org/r/20221125093832.33386-1-yuancan@huawei.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c54d4854
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment