]> git.baikalelectronics.ru Git - kernel.git/commit
st_nci_hci_connectivity_event_received: null check the allocation
authorNavid Emamdoost <navid.emamdoost@gmail.com>
Tue, 23 Jul 2019 22:11:51 +0000 (17:11 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Jul 2019 18:48:06 +0000 (11:48 -0700)
commitff9eec0d709951c2880485df1c1af96598d7f751
treea477f78009ae990751b7ba79fa61b73b97ab97ca
parentdea70c6c7c967c1b5f18dbd40b4cf39130f6931f
st_nci_hci_connectivity_event_received: null check the allocation

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>
drivers/nfc/st-nci/se.c