linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* MIPS: Lantiq: Completion of error handling around clkdev_add_clkout()
@ 2017-04-30 14:20 SF Markus Elfring
  0 siblings, 0 replies; only message in thread
From: SF Markus Elfring @ 2017-04-30 14:20 UTC (permalink / raw)
  To: linux-mips, Arnd Bergmann, Felix Fietkau, Hauke Mehrtens,
	James Hogan, John Crispin, Ralf Bächle
  Cc: LKML, kernel-janitors, Pan Bian

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-04-30 14:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-30 14:20 MIPS: Lantiq: Completion of error handling around clkdev_add_clkout() SF Markus Elfring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).