]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (aquacomputer_d5next) Fix an error handling path in aqc_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 22 May 2022 13:14:23 +0000 (15:14 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 22 May 2022 19:25:55 +0000 (12:25 -0700)
commitf303a42de57e10eb2ebcf4be3544bc6d0c5939f9
tree581038cd05d1753cbe042cc46162c9d7a625756f
parent986d05099d292805dbeb4c580e35673d638e338c
hwmon: (aquacomputer_d5next) Fix an error handling path in aqc_probe()

If no memory can be allocated, some resources still need to be released as
already done in the other error handling paths.

Fixes: 05a52b75764d ("hwmon: (aquacomputer_d5next) Add support for Aquacomputer Octo")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/be6b955d50de140fcc96bd116150b435021bf567.1653225250.git.christophe.jaillet@wanadoo.fr
Reviewed-by: Aleksa Savic <savicaleksa83@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/aquacomputer_d5next.c