]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
NFC: fdp: fix incorrect free object
authorPan Bian <bianpan2016@163.com>
Tue, 5 Nov 2019 08:34:07 +0000 (16:34 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Nov 2019 02:31:45 +0000 (18:31 -0800)
commit517ce4e93368938b204451285e53014549804868
tree9f008c3686a07c14bb796394768b7add00afa8a3
parentf75359f3ac855940c5718af10ba089b8977bf339
NFC: fdp: fix incorrect free object

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@163.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/nfc/fdp/i2c.c