In the Linux kernel, the following vulnerability has been resolved:
clk: xilinx: vcu: unregister pll_post only if registered correctly
If registration of pll_post is failed, it will be set to NULL or ERR, unregistering same will fail with following call trace:
Unable to handle kernel NULL pointer dereference at virtual address 008 pc : clkhwunregister+0xc/0x20 lr : clkhwunregisterfixedfactor+0x18/0x30 sp : ffff800011923850 ... Call trace: clkhwunregister+0xc/0x20 clkhwunregisterfixedfactor+0x18/0x30 xvcuunregisterclockprovider+0xcc/0xf4 [xlnxvcu] xvcuprobe+0x2bc/0x53c [xlnxvcu]