Commit 46a67e76 authored by Linus Torvalds's avatar Linus Torvalds
Browse files
Pull HSI update from Sebastian Reichel:

 - avoid returning free'd object in hsi_new_client error path

* tag 'hsi-for-5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-hsi:
  HSI: core: Fix return freed object in hsi_new_client
parents 039053c1 a1ee1c08
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -102,6 +102,7 @@ struct hsi_client *hsi_new_client(struct hsi_port *port,
	if (device_register(&cl->device) < 0) {
		pr_err("hsi: failed to register client: %s\n", info->name);
		put_device(&cl->device);
		goto err;
	}

	return cl;