MIPS: Lantiq: Completion of error handling around clkdev_add_clkout()
From: SF Markus Elfring
Date: Sun Apr 30 2017 - 10:21:22 EST
Hello,
I have noticed by execution of another script for the semantic patch language
(Coccinelle software) that the function âclkdev_add_clkoutâ does not contain
null pointer checks after calls of the function âkzallocâ.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/mips/lantiq/xway/sysctrl.c?h=v4.10#n403
How do you think about to add corresponding checks and adjust the function
return type there?
Regards,
Markus