HSI changes for the 5.17 series

* avoid returning free'd object in hsi_new_client error path
 -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAmHb/mQACgkQ2O7X88g7
 +ppjuQ//UB8YV10v6VZ5MXgEETyyv4FfcoT7vAo9N/zmiLpEfUKh5fE3RnwTOnS8
 t0D21K5Mb168/A27zuCMUoL3mTpt3P/HFCJmKgQ6IupL5+sqoytjGTA9jOI3/sqv
 1n/8HaiHSBU1966LopDQCMl4Acme/x9BwC56r2U5YWFOSS0y+5i2BLNNdV79GQJL
 ejiMtHu8X7PNFeUOeh6nsFch7fAmIPFPFfXEiWz6pvXNu+ySSHE5hIyl6GatrhA5
 ox8Ih/M8K7yvsPEBLN1V8v1sYBLoUJRPyFRn6w5twy8zjfeYvGm1ZKblaCD7bfgF
 frpqtsg5QenKGqL7W/jqMFKCAhdy1kQGCBsp5TZha4KnwCx2z+2K2Jw4iT1/Maia
 u3HyfvvyenDNS5jXt06LibaMEDZu6mqOYvOP7EJCWkzRNvWztTy54OVolWl3y7w2
 DJ/YP6Kk7OzBq3OUxwdi/L8Epeta08S3ZnJW8Tuo5jhtcPDyvSQdE+BSP5d2Yfvl
 giCKvbnIlPlqX6ZRFIw88fLTI5oSzSrSn7iPj0/7e2qXVAb75vJUjKRF8ax7lc/R
 Nn/Uu6Nh/Uiddy+/pKovQext3YNYmaYtGh7tI2lpE1CGeyQyo+qGiNp4BrFotQ0p
 q0rtA0PTeZ6SNtqjPBHiSwFoN8T0tzmJRg4xqcc94hdPyFO2UUk=
 =XDt5
 -----END PGP SIGNATURE-----

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:
Linus Torvalds 2022-01-11 11:23:25 -08:00
commit 46a67e7648
1 changed files with 1 additions and 0 deletions

View File

@ -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;