mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-03 01:36:52 +09:00
Merge tag 'hsi-for-5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-hsi
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user