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)
commit3008e06fdf0973770370f97d5f1fba3701d8281d
treea477f78009ae990751b7ba79fa61b73b97ab97ca
parent9891d06836e67324c9e9c4675ed90fc8b8110034
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