Alex Hung
031f196d1b
drm/amd/display: fix shift-out-of-bounds in CalculateVMAndRowBytes
...
[WHY]
When PTEBufferSizeInRequests is zero, UBSAN reports the following
warning because dml_log2 returns an unexpected negative value:
shift exponent 4294966273 is too large for 32-bit type 'int'
[HOW]
In the case PTEBufferSizeInRequests is zero, skip the dml_log2() and
assign the result directly.
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2023-03-01 22:43:19 -05:00
..
2023-02-06 09:29:03 +01:00
2023-01-19 16:24:04 +01:00
2023-01-29 11:17:34 -08:00
2022-12-13 15:22:14 -08:00
2023-01-14 07:38:48 +09:00
2022-12-25 13:38:09 -08:00
2023-01-19 17:27:36 +01:00
2023-01-27 16:16:57 -08:00
2023-01-17 15:59:02 -08:00
2022-12-16 03:49:24 -08:00
2023-01-12 17:02:20 -06:00
2022-12-13 13:46:07 -08:00
2023-01-19 17:24:47 +01:00
2023-01-10 20:31:08 +01:00
2022-12-19 07:13:33 -06:00
2023-01-12 05:56:06 -06:00
2023-01-25 15:35:26 -08:00
2023-01-19 18:59:34 +05:30
2023-02-17 09:16:34 +01:00
2023-01-20 19:47:34 +01:00
2022-12-16 03:49:24 -08:00
2023-01-31 12:23:23 +01:00
2022-12-16 03:49:24 -08:00
2023-01-27 14:05:38 +01:00
2023-03-01 22:43:19 -05:00
2023-01-18 14:44:32 -08:00
2022-12-13 15:47:48 -08:00
2022-12-13 13:09:38 -08:00
2023-01-20 10:18:51 +01:00
2022-12-16 03:49:24 -08:00
2023-01-10 12:21:50 +02:00
2023-01-29 11:06:47 -08:00
2023-01-05 17:29:57 +02:00
2023-01-13 13:46:32 +01:00
2022-12-14 15:23:49 -08:00
2022-12-25 13:38:09 -08:00
2022-12-25 13:38:09 -08:00
2022-12-21 09:31:18 -08:00
2023-01-27 16:09:12 -08:00
2023-01-20 17:46:01 +02:00
2022-12-27 09:54:32 +01:00
2022-12-21 09:19:24 -08:00
2023-01-31 12:23:23 +01:00
2023-01-02 15:57:36 +01:00
2023-01-02 12:08:53 +01:00
2023-01-25 22:46:51 -08:00
2023-01-09 07:34:13 +00:00
2023-01-27 16:16:57 -08:00
2022-12-16 03:49:24 -08:00
2023-01-04 21:31:59 -06:00
2022-12-17 23:19:38 +01:00
2023-01-13 17:32:22 -06:00
2022-12-25 13:38:09 -08:00
2023-01-26 13:55:38 +00:00
2023-01-18 22:58:05 +05:30
2023-01-17 14:16:45 +01:00
2023-01-25 12:45:16 +01:00
2022-12-17 08:39:31 -06:00
2022-12-13 15:47:48 -08:00
2022-12-21 09:41:28 -08:00
2023-01-03 15:54:38 +00:00
2023-01-03 11:30:46 +01:00
2022-12-21 09:19:24 -08:00
2023-01-06 13:12:42 -08:00
2023-01-24 17:42:53 -08:00
2023-01-10 23:09:09 +01:00
2022-12-19 08:47:33 -06:00
2023-01-11 14:15:22 +00:00
2023-01-17 19:23:36 +01:00
2023-01-13 20:24:24 -05:00
2023-01-25 15:37:21 +01:00
2023-01-09 10:44:43 +02:00
2023-01-21 11:12:42 -08:00
2023-01-18 19:08:37 -05:00
2023-01-21 11:10:03 -08:00
2022-12-28 05:28:11 -05:00
2023-01-10 10:44:37 -07:00
2022-12-28 05:28:11 -05:00
2023-01-31 12:23:23 +01:00
2022-12-16 03:49:24 -08:00
2022-12-28 05:28:11 -05:00
2023-01-19 17:26:33 +01:00
2022-12-17 08:34:01 -06:00
2023-01-12 17:02:20 -06:00
2023-01-26 11:52:10 +02:00