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

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

Merge "drivers: thermal: Add valid cpu check in cpu isolate driver"

parents 66e3c113 d6f59978
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -318,6 +318,12 @@ static int cpu_isolate_probe(struct platform_device *pdev)
				break;
			}
		}

		if (cpu_isolate_cdev->cpu_id == -1) {
			dev_err(&pdev->dev, "Invalid CPU phandle\n");
			continue;
		}

		INIT_WORK(&cpu_isolate_cdev->reg_work,
				cpu_isolate_register_cdev);
		list_add(&cpu_isolate_cdev->node, &cpu_isolate_cdev_list);