Merge tag 'LA.VENDOR.13.2.0.r1-20500-KAILUA.0' of https://git.codelinaro.org/clo/la/platform/vendor/nxp/opensource/driver into lineage-21

LA.VENDOR.13.2.0.r1-20500-KAILUA.0

* tag 'LA.VENDOR.13.2.0.r1-20500-KAILUA.0' of https://git.codelinaro.org/clo/la/platform/vendor/nxp/opensource/driver:
  NFC: avoid freeing unallocated memory
  nfc-driver: Enable sn220 nfc driver for crow

Change-Id: I991ffdcc09bf879694401099989c344674e5e3d4
This commit is contained in:
Bruno Martins
2023-11-15 12:44:12 +00:00
2 changed files with 9 additions and 5 deletions

View File

@@ -390,10 +390,14 @@ int ese_cold_reset_ioctl(struct nfc_dev *nfc_dev, unsigned long arg)
ret = nfc_dev->cold_reset.status;
err:
kfree(nfc_dev->cold_reset.cmd_buf);
nfc_dev->cold_reset.cmd_buf = NULL;
kfree(cold_reset_arg);
cold_reset_arg = NULL;
if (nfc_dev->cold_reset.cmd_buf != NULL) {
kfree(nfc_dev->cold_reset.cmd_buf);
nfc_dev->cold_reset.cmd_buf = NULL;
}
if (cold_reset_arg != NULL) {
kfree(cold_reset_arg);
cold_reset_arg = NULL;
}
mutex_unlock(&nfc_dev->write_mutex);

View File

@@ -1,5 +1,5 @@
# Build NFC kernel driver
ifeq ($(call is-board-platform-in-list, kalama bengal),true)
ifeq ($(call is-board-platform-in-list, kalama bengal crow),true)
BOARD_VENDOR_KERNEL_MODULES += $(KERNEL_MODULES_OUT)/nxp-nci.ko
endif