Re: [PATCH] NFC: fdp: fix incorrect free object

From: David Miller
Date: Tue Nov 05 2019 - 21:32:22 EST


From: Pan Bian <bianpan2016@xxxxxxx>
Date: Tue, 5 Nov 2019 16:34:07 +0800

> The address of fw_vsc_cfg is on stack. Releasing it with devm_kfree() is
> incorrect, which may result in a system crash or other security impacts.
> The expected object to free is *fw_vsc_cfg.
>
> Signed-off-by: Pan Bian <bianpan2016@xxxxxxx>

Applied and queued up for -stable, thanks.