Guenter Roeck
e61d239225
hwmon: (w83627ehf) Fix crash seen with W83627DHG-P
...
Loading the driver on a system with W83627DHG-P crashes as follows.
w83627ehf: Found W83627DHG-P chip at 0x290
BUG: kernel NULL pointer dereference, address: 0000000000000000
PGD 0 P4D 0
Oops: 0000 [#1 ] SMP NOPTI
CPU: 0 PID: 604 Comm: sensors Not tainted 5.6.0-rc2-00055-gca7e1fd1026c #29
Hardware name: /D425KT, BIOS MWPNT10N.86A.0132.2013.0726.1534 07/26/2013
RIP: 0010:w83627ehf_read_string+0x27/0x70 [w83627ehf]
Code: [... ]
RSP: 0018:ffffb95980657df8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff96caaa7f5218 RCX: 0000000000000000
RDX: 0000000000000015 RSI: 0000000000000001 RDI: ffff96caa736ec08
RBP: 0000000000000000 R08: ffffb95980657e20 R09: 0000000000000001
R10: ffff96caaa635cc0 R11: 0000000000000000 R12: ffff96caa9f7cf00
R13: ffff96caa9ec3d00 R14: ffff96caa9ec3d28 R15: ffff96caa9ec3d40
FS: 00007fbc7c4e2740(0000) GS:ffff96caabc00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 0000000129d58000 CR4: 00000000000006f0
Call Trace:
? cp_new_stat+0x12d/0x160
hwmon_attr_show_string+0x37/0x70 [hwmon]
dev_attr_show+0x14/0x50
sysfs_kf_seq_show+0xb5/0x1b0
seq_read+0xcf/0x460
vfs_read+0x9b/0x150
ksys_read+0x5f/0xe0
do_syscall_64+0x48/0x190
entry_SYSCALL_64_after_hwframe+0x44/0xa9
...
Temperature labels are not always present. Adjust sysfs attribute
visibility accordingly.
Reported-by: Meelis Roos <mroos@linux.ee>
Suggested-by: Dr. David Alan Gilbert <linux@treblig.org>
Reviewed-by: Dr. David Alan Gilbert <linux@treblig.org>
Cc: Meelis Roos <mroos@linux.ee>
Cc: Dr. David Alan Gilbert <linux@treblig.org>
Fixes: 266cd5835947 ("hwmon: (w83627ehf) convert to with_info interface")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2020-02-21 09:16:24 -08:00
..
2019-07-21 19:18:45 -07:00
2020-02-12 12:43:01 -08:00
2019-10-18 19:37:08 +01:00
2019-05-24 17:36:45 +02:00
2019-11-06 14:37:19 -08:00
2019-05-30 11:29:22 -07:00
2019-05-30 11:29:22 -07:00
2020-02-19 17:25:15 -08:00
2019-05-30 11:25:18 -07:00
2019-05-30 11:26:32 -07:00
2019-06-05 17:37:10 +02:00
2019-05-30 11:26:37 -07:00
2019-05-24 17:36:45 +02:00
2019-05-24 17:36:45 +02:00
2019-05-24 17:36:45 +02:00
2019-05-24 17:36:45 +02:00
2019-06-23 18:34:11 -07:00
2019-05-24 17:36:45 +02:00
2020-01-23 13:15:11 -08:00
2019-05-24 17:36:45 +02:00
2019-05-24 17:36:45 +02:00
2019-05-24 17:36:42 +02:00
2019-05-24 17:36:45 +02:00
2017-11-02 11:10:55 +01:00
2019-05-30 11:25:18 -07:00
2019-05-30 11:25:18 -07:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2020-01-17 07:56:48 -08:00
2019-05-24 17:36:45 +02:00
2019-11-06 14:37:18 -08:00
2019-09-03 12:47:17 -07:00
2019-09-03 12:47:17 -07:00
2019-05-24 17:36:45 +02:00
2019-11-06 14:37:18 -08:00
2019-06-23 18:33:01 -07:00
2019-07-31 13:25:27 -06:00
2019-08-31 08:04:57 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2020-02-04 03:05:26 +00:00
2019-05-24 17:36:45 +02:00
2020-01-23 13:15:10 -08:00
2019-05-24 17:36:45 +02:00
2019-05-24 17:36:45 +02:00
2019-05-24 17:36:45 +02:00
2019-05-30 11:26:39 -07:00
2019-05-24 17:36:45 +02:00
2019-05-24 17:36:45 +02:00
2019-05-30 11:26:35 -07:00
2019-05-24 17:36:45 +02:00
2019-05-24 17:36:43 +02:00
2019-10-23 17:23:46 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:32 -07:00
2019-05-21 11:28:47 +02:00
2019-05-24 17:36:45 +02:00
2019-05-24 17:36:45 +02:00
2019-07-08 18:11:32 -07:00
2019-05-24 17:39:00 +02:00
2019-05-24 17:36:45 +02:00
2020-01-23 13:15:09 -08:00
2020-01-06 09:45:59 +01:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2019-05-24 17:39:01 +02:00
2019-09-03 12:47:17 -07:00
2019-06-05 17:37:17 +02:00
2019-06-05 17:37:17 +02:00
2019-11-06 14:37:19 -08:00
2019-05-30 11:26:37 -07:00
2019-05-24 17:36:45 +02:00
2019-09-03 12:47:17 -07:00
2020-01-23 15:17:59 -08:00
2020-01-23 13:15:11 -08:00
2019-05-24 17:36:45 +02:00
2019-05-24 17:36:45 +02:00
2019-05-24 17:36:45 +02:00
2019-06-05 17:37:04 +02:00
2019-09-04 11:06:47 -07:00
2019-05-24 17:36:45 +02:00
2019-05-30 11:26:37 -07:00
2019-05-24 17:36:45 +02:00
2019-05-24 17:36:45 +02:00
2019-05-30 11:26:37 -07:00
2019-05-24 17:36:45 +02:00
2019-05-24 17:36:45 +02:00
2019-07-08 18:11:31 -07:00
2019-05-30 11:26:37 -07:00
2019-05-24 17:36:45 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-04-15 17:19:53 -07:00
2019-05-30 11:26:37 -07:00
2019-11-06 14:37:19 -08:00
2019-11-06 14:37:19 -08:00
2019-11-06 14:37:19 -08:00
2019-11-06 14:37:19 -08:00
2019-09-03 12:47:17 -07:00
2019-05-24 17:36:45 +02:00
2019-06-05 17:37:17 +02:00
2019-05-30 11:26:37 -07:00
2019-06-05 17:37:17 +02:00
2019-05-30 11:26:37 -07:00
2019-05-24 17:36:45 +02:00
2019-05-21 11:28:45 +02:00
2020-01-23 13:15:11 -08:00
2019-06-19 17:09:55 +02:00
2019-06-05 17:37:06 +02:00
2019-05-30 11:26:37 -07:00
2019-05-24 17:36:45 +02:00
2019-05-30 11:26:37 -07:00
2019-05-24 17:36:45 +02:00
2019-05-24 17:36:45 +02:00
2019-06-23 18:33:01 -07:00
2019-05-30 11:26:37 -07:00
2019-06-05 17:37:17 +02:00
2019-06-05 17:37:06 +02:00
2020-01-23 13:15:09 -08:00
2019-05-30 11:26:37 -07:00
2019-02-18 14:23:29 -08:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-16 07:56:57 -07:00
2019-05-30 11:26:37 -07:00
2019-09-03 12:47:17 -07:00
2020-01-17 07:56:48 -08:00
2019-10-20 09:22:48 -07:00
2019-09-03 12:47:17 -07:00
2019-06-05 17:37:14 +02:00
2019-05-30 11:26:35 -07:00
2019-05-24 17:36:45 +02:00
2019-05-30 11:26:41 -07:00
2019-05-24 17:36:45 +02:00
2019-05-30 11:26:37 -07:00
2020-01-23 13:15:11 -08:00
2019-09-03 12:47:17 -07:00
2019-06-05 17:37:06 +02:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2019-12-24 11:37:35 +00:00
2019-06-23 18:34:11 -07:00
2019-05-30 11:26:37 -07:00
2019-04-17 10:37:23 -07:00
2019-05-24 17:39:00 +02:00
2019-09-10 11:42:56 -07:00
2019-05-24 17:36:45 +02:00
2019-09-17 16:22:26 -07:00
2019-05-24 17:36:45 +02:00
2019-06-23 18:33:01 -07:00
2019-05-24 17:36:45 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:37 -07:00
2019-05-24 17:36:45 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-24 17:36:45 +02:00
2019-11-06 14:37:19 -08:00
2019-11-21 21:26:40 -08:00
2019-05-21 10:50:45 +02:00
2019-05-30 11:26:41 -07:00
2019-05-24 17:36:45 +02:00
2019-05-30 11:26:38 -07:00
2019-05-24 17:36:45 +02:00
2019-05-24 17:36:45 +02:00
2019-05-24 17:36:45 +02:00
2019-06-05 17:30:30 +02:00
2020-02-21 09:16:24 -08:00
2019-05-24 17:36:45 +02:00
2019-05-30 11:26:32 -07:00
2019-09-03 12:47:17 -07:00
2019-09-03 12:47:17 -07:00
2019-09-03 12:47:17 -07:00
2019-12-01 13:46:15 -08:00
2019-06-05 17:30:30 +02:00
2019-06-05 17:30:30 +02:00
2019-06-05 17:30:30 +02:00
2019-05-21 11:28:45 +02:00