Revision 031f196d1b1b6d5dfcb0533b431e3ab1750e6189 authored by Alex Hung on 11 January 2023, 16:54:11 UTC, committed by Alex Deucher on 02 March 2023, 03:43:19 UTC
[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>
1 parent 01a18aa
File | Mode | Size |
---|---|---|
.gitignore | -rw-r--r-- | 58 bytes |
Kconfig | -rw-r--r-- | 64.3 KB |
Makefile | -rw-r--r-- | 1.8 KB |
build-version | -rwxr-xr-x | 177 bytes |
calibrate.c | -rw-r--r-- | 8.6 KB |
do_mounts.c | -rw-r--r-- | 15.5 KB |
do_mounts.h | -rw-r--r-- | 908 bytes |
do_mounts_initrd.c | -rw-r--r-- | 3.7 KB |
do_mounts_rd.c | -rw-r--r-- | 7.7 KB |
init_task.c | -rw-r--r-- | 6.1 KB |
initramfs.c | -rw-r--r-- | 17.2 KB |
main.c | -rw-r--r-- | 40.1 KB |
noinitramfs.c | -rw-r--r-- | 862 bytes |
version-timestamp.c | -rw-r--r-- | 762 bytes |
version.c | -rw-r--r-- | 1.3 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...