[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Y/yeHqTwYrylRf6l@corigine.com>
Date: Mon, 27 Feb 2023 13:12:14 +0100
From: Simon Horman <simon.horman@...igine.com>
To: void0red <void0red@...il.com>
Cc: krzysztof.kozlowski@...aro.org, linux-kernel@...r.kernel.org,
netdev@...r.kernel.org
Subject: Re: [PATCH v3] nfc: fdp: add null check of devm_kmalloc_array in
fdp_nci_i2c_read_device_properties
On Mon, Feb 27, 2023 at 05:30:37PM +0800, void0red wrote:
> [You don't often get email from void0red@...il.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
>
> From: Kang Chen <void0red@...il.com>
>
> 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@...il.com>
Reviewed-by: Simon Horman <simon.horman@...igine.com>
Powered by blists - more mailing lists