]> 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)
commit87ac2812d43a79a0cbb1172585e8d891d6ae7ec0
tree8ab57b046542288bebf5201f79617b58a64394da
parent27582c8cc4c1c650ef36517b1920b1c46181ee7f
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