]> git.baikalelectronics.ru Git - kernel.git/commit
clk: zynqmp: Add a check for NULL pointer
authorShubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Wed, 18 May 2022 05:53:14 +0000 (11:23 +0530)
committerStephen Boyd <sboyd@kernel.org>
Tue, 23 Aug 2022 00:01:05 +0000 (17:01 -0700)
commit7e233ffea72f269d41e6db5b977f7dc600bb3e81
tree7648467be1fec8e5fe1ca657a30755982e36d678
parente84d7ec2045e71bf0a2665a40f590da07fe4a17f
clk: zynqmp: Add a check for NULL pointer

Add a NULL pointer check as clk_hw_get_parent can return NULL.

Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Link: https://lore.kernel.org/r/20220518055314.2486-1-shubhrajyoti.datta@xilinx.com
Acked-by: Michal Simek <michal.simek@amd.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/zynqmp/divider.c