]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
st21nfca_connectivity_event_received: null check the allocation
authorNavid Emamdoost <navid.emamdoost@gmail.com>
Tue, 23 Jul 2019 22:04:30 +0000 (17:04 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Sep 2019 08:18:05 +0000 (10:18 +0200)
commitc697bfc26a4679e69f4ba9698468afbee3ea7bcd
tree03e45827106f5d8da9cad98d6af95fb6161b6178
parentdc8438815624470629d0dd881708f19983d2f7c6
st21nfca_connectivity_event_received: null check the allocation

[ Upstream commit 9891d06836e67324c9e9c4675ed90fc8b8110034 ]

devm_kzalloc may fail and return null. So the null check is needed.

Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nfc/st21nfca/se.c