* NFC-FDP: Completion of error handling around fdp_nci_i2c_read_device_properties()
@ 2017-04-15 7:51 SF Markus Elfring
0 siblings, 0 replies; only message in thread
From: SF Markus Elfring @ 2017-04-15 7:51 UTC (permalink / raw)
To: linux-wireless, Aloisio Almeida Jr, Christophe Ricard,
Lauro Ramos Venancio, Robert Dolca, Samuel Ortiz
Cc: LKML, kernel-janitors
Hello,
I have noticed that the function “fdp_nci_i2c_read_device_properties” does not
contain a null pointer check after a call of the function “devm_kmalloc”.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/nfc/fdp/i2c.c?h=v4.10#n234
How do you think about to add a corresponding check 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-15 7:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-15 7:51 NFC-FDP: Completion of error handling around fdp_nci_i2c_read_device_properties() 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
all inboxes | Powered by JetHome®