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-07-05 14:08:24 -07:00
2021-10-07 07:53:05 +02:00
2021-09-30 10:12:54 +02:00
2021-09-18 13:43:44 +02:00
2021-06-30 15:51:09 -07:00
2021-09-15 10:02:32 +02:00
2021-10-07 07:53:11 +02:00
2021-09-15 10:02:30 +02:00
2021-10-07 07:53:08 +02:00
2021-09-15 10:02:14 +02:00
2021-09-18 13:43:40 +02:00
2021-06-30 15:34:19 -06:00
2021-09-15 10:02:35 +02:00
2021-09-18 13:43:33 +02:00
2021-09-15 10:02:08 +02:00
2021-09-30 10:12:57 +02:00
2021-09-15 10:02:20 +02:00
2021-10-07 07:53:05 +02:00
2021-09-18 13:43:28 +02:00
2021-10-07 07:53:03 +02:00
2021-09-26 14:10:21 +02:00
2021-08-11 12:04:43 -07:00
2021-06-24 10:37:35 +09:00
2021-09-26 14:10:21 +02:00
2021-09-26 14:10:19 +02:00
2021-09-30 10:13:07 +02:00
2021-07-05 13:42:16 -07:00
2021-07-05 13:42:16 -07:00
2021-09-15 10:02:25 +02:00
2021-09-30 10:13:01 +02:00
2021-10-07 07:53:06 +02:00
2021-10-07 07:53:12 +02:00
2021-10-07 07:53:04 +02:00
2021-09-22 12:39:23 +02:00
2021-10-07 07:53:12 +02:00
2021-07-05 13:42:16 -07:00
2021-09-15 10:02:28 +02:00
2021-07-10 11:53:06 -07:00
2021-09-18 13:43:37 +02:00
2021-10-07 07:53:12 +02:00
2021-09-18 13:43:20 +02:00
2021-10-07 07:53:09 +02:00
2021-09-26 14:10:20 +02:00
2021-08-13 10:24:37 +02:00
2021-09-30 10:13:07 +02:00
2021-07-05 14:08:24 -07:00
2021-09-15 10:02:20 +02:00
2021-09-18 13:43:34 +02:00
2021-09-30 10:12:55 +02:00
2021-09-30 10:13:03 +02:00
2021-10-07 07:53:08 +02:00
2021-06-30 12:12:56 -07:00
2021-06-22 23:00:01 -04:00
2021-09-22 12:39:33 +02:00
2021-09-30 10:12:55 +02:00
2021-10-07 07:53:08 +02:00
2021-09-22 12:39:29 +02:00
2021-10-07 07:53:13 +02:00
2021-09-30 10:13:00 +02:00
2021-09-22 12:39:27 +02:00
2021-09-18 13:44:02 +02:00
2021-09-30 10:13:08 +02:00
2021-09-18 13:43:48 +02:00
2021-09-26 14:10:20 +02:00
2021-09-18 13:43:51 +02:00
2021-09-26 14:10:20 +02:00
2021-09-18 13:43:59 +02:00
2021-09-26 14:10:15 +02:00
2021-07-23 08:08:54 +02:00
2021-07-05 14:16:22 -07:00
2021-10-07 07:53:03 +02:00
2021-10-07 07:53:06 +02:00
2021-07-05 13:42:16 -07:00
2021-09-18 13:43:22 +02:00
2021-10-07 07:53:07 +02:00
2021-09-26 14:10:24 +02:00
2021-09-30 10:12:57 +02:00
2021-09-22 12:39:24 +02:00
2021-08-23 12:55:18 +02:00
2021-09-26 14:10:25 +02:00
2021-10-07 07:53:03 +02:00
2021-10-07 07:53:06 +02:00
2021-06-24 15:46:34 +02:00
2021-08-13 10:22:30 +02:00
2021-09-18 13:43:21 +02:00
2021-09-18 13:43:54 +02:00
2021-09-30 10:13:07 +02:00
2021-06-25 10:02:05 +02:00
2021-10-07 07:53:02 +02:00
2021-09-30 10:13:01 +02:00
2021-07-21 07:55:50 +02:00
2021-09-30 10:13:07 +02:00
2021-09-18 13:43:48 +02:00
2021-10-07 07:53:04 +02:00
2021-09-30 10:13:08 +02:00
2021-08-16 06:16:25 -10:00
2021-09-18 13:43:27 +02:00
2021-09-22 12:39:21 +02:00
2021-09-22 12:39:28 +02:00
2021-07-27 16:48:45 +02:00
2021-08-27 11:39:36 -07:00
2021-10-07 07:53:04 +02:00
2021-09-30 10:13:08 +02:00
2021-06-29 11:21:35 -07:00