]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Jul 2019 18:47:10 +0000 (11:47 -0700)
commitdea70c6c7c967c1b5f18dbd40b4cf39130f6931f
tree8ab57b046542288bebf5201f79617b58a64394da
parent72c06b121c836d55d6afc8270109aae1e5ec8f68
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