ARM: OMAP2+: Fix kfree NULL pointer in omap2xxx_clkt_vps_init
authorYouling Tang <tangyouling@loongson.cn>
Sat, 14 Nov 2020 04:07:20 +0000 (12:07 +0800)
committerTony Lindgren <tony@atomide.com>
Thu, 19 Nov 2020 09:44:46 +0000 (11:44 +0200)
commitc3f244d5776ecd236657fc1c4b7c5d1d4d01ca7e
tree158a4ca91d32ee2ce5de82cd149936427476ead9
parent3c5902d270edb6ccc3049acfe5d3e96653c87dcd
ARM: OMAP2+: Fix kfree NULL pointer in omap2xxx_clkt_vps_init

The returns pointer is NULL when kzalloc fails to apply for space, so fix
kfree NULL pointer.

Signed-off-by: Youling Tang <tangyouling@loongson.cn>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/clkt2xxx_virt_prcm_set.c