diff options
| author | Guenter Roeck <linux@roeck-us.net> | 2026-08-20 22:19:13 -0700 |
|---|---|---|
| committer | Guenter Roeck <linux@roeck-us.net> | 2026-09-07 07:22:19 -0700 |
| commit | 2bf98a6af10388215398a30d723ff1f6ff5ce4f7 (patch) | |
| tree | 1a5c679aa1c054604197bec7b897e34f1ab8cc96 /scripts/basic | |
| parent | 8afc94bfb0ffdfc4a168081785820aa4818d1d23 (diff) | |
| download | linux-2bf98a6af10388215398a30d723ff1f6ff5ce4f7.tar.gz linux-2bf98a6af10388215398a30d723ff1f6ff5ce4f7.zip | |
hwmon: Ensure that 'dev' passed to hwmon_notify_event() is a hwmon device
The device parameter of hwmon_notify_event() must be a hardware monitoring
device. Since this is easy to get wrong, and since passing a non-hwmon
device may result in a crash, generate a warning traceback and abort if
a wrong device class is passed as parameter.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions
