Re: [PATCH] drm/amd/pm: Fix memory some memory corruption

2023-06-06 Thread Alex Deucher
tio ; > > amd-gfx@lists.freedesktop.org; kernel-janit...@vger.kernel.org > > Subject: [PATCH] drm/amd/pm: Fix memory some memory corruption > > > > The "od_table" is a pointer to a large struct, but this code is doing > > pointer > > math as if it we

[PATCH] drm/amd/pm: Fix memory some memory corruption

2023-06-06 Thread Dan Carpenter
The "od_table" is a pointer to a large struct, but this code is doing pointer math as if it were pointing to bytes. It results in writing far outside the struct. Fixes: f0a0c659fb96 ("drm/amd/pm: fulfill the OD support for SMU13.0.0") Fixes: e3afa4f988b3 ("drm/amd/pm: fulfill the OD support for

RE: [PATCH] drm/amd/pm: Fix memory some memory corruption

2023-06-06 Thread Quan, Evan
Daniel Vetter ; Lazar, Lijo > ; Zhang, Hawking ; Feng, > Kenneth ; Li, Candice ; > Chai, Thomas ; Wang, Yang(Kevin) > ; Zhang, Horatio ; > amd-gfx@lists.freedesktop.org; kernel-janit...@vger.kernel.org > Subject: [PATCH] drm/amd/pm: Fix memory some memory corruption > >