Skip to content
Commit 11f180a5 authored by Kang Chen's avatar Kang Chen Committed by Paolo Abeni
Browse files

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: a06347c0 ("NFC: Add Intel Fields Peak NFC solution driver")
Signed-off-by: default avatarKang Chen <void0red@gmail.com>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: default avatarSimon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/r/20230227093037.907654-1-void0red@gmail.com


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent f99e6d7c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment