]> exis.tech > repos - linux.git/commit
hwmon: (asus-ec-sensors) add missed handle for ENOMEM
authorEugene Shalygin <eugene.shalygin@gmail.com>
Sun, 12 Jul 2026 13:05:05 +0000 (15:05 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 19 Jul 2026 14:15:04 +0000 (07:15 -0700)
commit9813c1f49efeadbcb17e4a41972350ac783f9cac
treed002db4517cb5fc7669710fe7bf4193053251b58
parent60710b2af13b81da71b429d3f8b19dd70310729d
hwmon: (asus-ec-sensors) add missed handle for ENOMEM

Add missing return value check in the setup function.

Fixes: d0ddfd241e57 ("hwmon: (asus-ec-sensors) add driver for ASUS EC")
Signed-off-by: Eugene Shalygin <eugene.shalygin@gmail.com>
Link: https://lore.kernel.org/r/20260712130602.1256700-2-eugene.shalygin@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/asus-ec-sensors.c