OSDN Git Service

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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Jul 2019 18:47:10 +0000 (11:47 -0700)
commit9891d06836e67324c9e9c4675ed90fc8b8110034
tree8ab57b046542288bebf5201f79617b58a64394da
parent4b663366246be1d1d4b1b8b01245b2e88ad9e706
st21nfca_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/st21nfca/se.c