Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1624039 > unrolled thread
| Started by | SF Markus Elfring <elfring@users.sourceforge.net> |
|---|---|
| First post | 2017-04-15 10:00 +0200 |
| Last post | 2017-04-15 10:00 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
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
| From | SF Markus Elfring <elfring@users.sourceforge.net> |
|---|---|
| Date | 2017-04-15 10:00 +0200 |
| Subject | NFC-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
Back to top | Article view | linux.kernel
csiph-web