Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e2ad70a3 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "NFC: Add fix for CTS issue of IPC log file creation failed"

parents b1189d1d 33d50bb7
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -294,14 +294,6 @@ int nfc_misc_probe(struct nfc_dev *nfc_dev,

	nfc_dev->ipcl = ipc_log_context_create(NUM_OF_IPC_LOG_PAGES,
						dev_name(nfc_dev->nfc_device), 0);
	if (!nfc_dev->ipcl) {
		pr_err("nfc ipc log create failed\n");
		device_destroy(nfc_dev->nfc_class, nfc_dev->devno);
		cdev_del(&nfc_dev->c_dev);
		class_destroy(nfc_dev->nfc_class);
		unregister_chrdev_region(nfc_dev->devno, count);
		return -ENXIO;
	}

	nfc_dev->kbuflen = MAX_BUFFER_SIZE;
	nfc_dev->kbuf = kzalloc(MAX_BUFFER_SIZE, GFP_KERNEL | GFP_DMA);