Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1624039 > unrolled thread

NFC-FDP: Completion of error handling around fdp_nci_i2c_read_device_properties()

Started bySF Markus Elfring <elfring@users.sourceforge.net>
First post2017-04-15 10:00 +0200
Last post2017-04-15 10:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  NFC-FDP: Completion of error handling around  fdp_nci_i2c_read_device_properties() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-04-15 10:00 +0200

#1624039 — NFC-FDP: Completion of error handling around fdp_nci_i2c_read_device_properties()

FromSF Markus Elfring <elfring@users.sourceforge.net>
Date2017-04-15 10:00 +0200
SubjectNFC-FDP: Completion of error handling around fdp_nci_i2c_read_device_properties()
Message-ID<twqMF-3T3-3@gated-at.bofh.it>
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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web