Jacob Keller
474443c998
e100: fix length calculation in e100_get_regs_len
...
[ Upstream commit 4329c8dc11 ]
commit abf9b90205 ("e100: cleanup unneeded math") tried to simplify
e100_get_regs_len and remove a double 'divide and then multiply'
calculation that the e100_reg_regs_len function did.
This change broke the size calculation entirely as it failed to account
for the fact that the numbered registers are actually 4 bytes wide and
not 1 byte. This resulted in a significant under allocation of the
register buffer used by e100_get_regs.
Fix this by properly multiplying the register count by u32 first before
adding the size of the dump buffer.
Fixes: abf9b90205 ("e100: cleanup unneeded math")
Reported-by: Felicitas Hetzelt <felicitashetzelt@gmail.com >
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com >
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2021-10-07 07:53:13 +02:00
..
2021-05-19 12:17:30 -07:00
2021-05-19 12:17:31 -07:00
2021-03-22 12:56:21 -07:00
2021-05-07 00:26:34 -07:00
2021-06-19 11:45:10 -07:00
2020-12-04 14:42:21 -08:00
2021-04-13 14:35:02 -07:00
2021-05-19 12:17:30 -07:00
2021-04-13 14:35:02 -07:00
2021-06-28 15:28:03 -07:00
2021-05-19 12:17:30 -07:00
2021-08-23 11:23:48 +01:00
2021-05-19 12:17:30 -07:00
2021-09-30 10:13:01 +02:00
2021-05-17 14:12:38 -07:00
2021-07-08 13:31:43 -07:00
2021-09-30 10:12:58 +02:00
2021-05-17 14:12:38 -07:00
2021-09-30 10:13:04 +02:00
2021-05-17 14:12:38 -07:00
2021-07-15 10:27:33 -07:00
2021-09-22 12:39:33 +02:00
2021-05-03 13:23:00 -07:00
2021-06-07 13:20:00 -07:00
2021-04-26 12:48:30 -07:00
2021-07-28 09:26:49 +01:00
2021-05-19 12:17:31 -07:00
2021-06-25 11:44:16 -07:00
2021-06-19 11:46:00 -07:00
2021-05-23 16:16:24 -07:00
2021-10-07 07:53:12 +02:00
2021-05-27 09:55:10 -07:00
2021-09-15 10:02:11 +02:00
2021-09-30 10:12:59 +02:00
2021-05-17 14:12:38 -07:00
2021-09-30 10:13:05 +02:00
2021-09-22 12:39:22 +02:00
2021-10-07 07:53:13 +02:00
2021-09-22 12:39:26 +02:00
2021-09-30 10:13:00 +02:00
2021-10-07 07:53:03 +02:00
2021-06-14 12:54:43 -07:00
2021-08-10 13:22:57 -07:00
2021-06-29 15:45:27 -07:00
2021-07-09 11:01:01 -07:00
2021-09-30 10:13:01 +02:00
2021-06-01 15:54:38 -07:00
2021-08-02 15:09:52 +01:00
2021-08-05 07:29:50 -07:00
2021-09-22 12:39:19 +02:00
2021-06-08 16:36:57 -07:00
2020-11-03 17:47:04 -08:00
2021-04-13 14:35:02 -07:00
2021-05-10 14:58:20 -07:00
2020-09-25 16:29:00 -07:00
2020-12-02 18:03:58 -08:00
2021-09-15 10:02:13 +02:00
2021-09-30 10:13:00 +02:00
2021-09-15 10:02:31 +02:00
2021-09-22 12:39:19 +02:00
2021-09-12 09:00:58 +02:00
2021-09-22 12:39:33 +02:00
2021-08-10 13:22:57 -07:00
2021-05-17 14:12:39 -07:00
2021-05-19 12:17:31 -07:00
2021-07-13 10:02:41 -07:00
2021-06-09 15:24:43 -07:00
2021-07-28 13:43:49 +01:00
2021-05-19 12:17:31 -07:00
2021-06-24 19:46:12 +02:00
2021-09-30 10:13:04 +02:00
2021-07-23 17:48:52 +01:00
2021-02-06 11:37:01 -08:00
2021-03-05 12:59:32 -08:00
2021-09-15 10:02:19 +02:00
2021-03-31 14:34:09 -07:00
2021-05-17 14:12:39 -07:00
2021-09-18 13:44:00 +02:00
2021-06-21 14:44:09 -07:00
2021-05-19 12:17:31 -07:00
2021-07-21 09:10:24 -07:00
2020-09-25 16:29:00 -07:00
2021-06-18 13:01:17 -07:00
2021-04-13 14:35:02 -07:00
2021-05-19 12:17:31 -07:00
2021-03-17 16:33:58 +01:00
2021-03-17 16:33:58 +01:00
2021-04-19 15:58:14 -07:00
2021-05-13 15:54:08 -07:00
2021-06-18 19:47:02 -07:00
2021-04-19 15:24:25 -07:00