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

From: SF Markus Elfring
Date: Sat Apr 15 2017 - 03:52:44 EST


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