diff options
author | Kang Chen <void0red@gmail.com> | 2023-02-27 17:30:37 +0800 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2023-02-28 11:48:28 +0100 |
commit | 11f180a5d62a51b484e9648f9b310e1bd50b1a57 (patch) | |
tree | f3c6e423dcd4f4bb373a0051b1f86616688a4b45 /drivers/nfc/pn533 | |
parent | f99e6d7c4ed3be2531bd576425a5bd07fb133bd7 (diff) |
nfc: fdp: add null check of devm_kmalloc_array in fdp_nci_i2c_read_device_properties
devm_kmalloc_array may fails, *fw_vsc_cfg might be null and cause
out-of-bounds write in device_property_read_u8_array later.
Fixes: a06347c04c13 ("NFC: Add Intel Fields Peak NFC solution driver")
Signed-off-by: Kang Chen <void0red@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/r/20230227093037.907654-1-void0red@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/nfc/pn533')
0 files changed, 0 insertions, 0 deletions