Skip to contentSkip to conversation

cpufreq: ap806: Checking implementation ofarmada_8k_cpufreq_init()

PATCH Markus Elfring 1 participant 1 message Apr 3, 2019 1 message not in the archive Kernel janitors

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 4 lines
Quoted 1 line

https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/cpufreq/armada-8k-cpufreq.c?id=05d08e2995cbe6efdb993482ee0d38a77040861a#n137

Thank you for your comments.
Adding a null pointer check here is indeed safer.

I wonder then why such a return value check was omitted so far.

Quoted 2 lines

However, the purpose of series of patches is to add missing of_node_put to avoid memory leaks.

A few lines might become also more interesting besides these source code places.

Quoted 1 line

So after that, we will also add a null pointer check later.

Would we like to develop another script for the semantic patch language to detect similarly questionable implementation details?

Regards,
Markus