diff options
author | Martin Krastev <krastevm@vmware.com> | 2022-10-22 00:02:21 -0400 |
---|---|---|
committer | Zack Rusin <zackr@vmware.com> | 2022-10-25 12:42:14 -0400 |
commit | 3280706369f636cc6fc959a9842df5707c7fd85f (patch) | |
tree | ecebb38faf4ec16135d556a3917150890addf2c9 /drivers/gpu/drm/aspeed | |
parent | 7f4c33778686cc2d34cb4ef65b4265eea874c159 (diff) | |
download | linux-stable-3280706369f636cc6fc959a9842df5707c7fd85f.tar.gz linux-stable-3280706369f636cc6fc959a9842df5707c7fd85f.tar.bz2 linux-stable-3280706369f636cc6fc959a9842df5707c7fd85f.zip |
drm/vmwgfx: Fix frame-size warning in vmw_mksstat_add_ioctl
Function vmw_mksstat_add_ioctl allocates three big arrays on stack.
That triggers frame-size [-Wframe-larger-than=] warning. Refactor
that function to use kmalloc_array instead.
v2: Initialize page to null to avoid possible uninitialized use of it,
spotted by the kernel test robot <lkp@intel.com>
Signed-off-by: Martin Krastev <krastevm@vmware.com>
Reviewed-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Maaz Mombasawala <mombasawalam@vmware.com>
Signed-off-by: Zack Rusin <zackr@vmware.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221022040236.616490-3-zack@kde.org
Diffstat (limited to 'drivers/gpu/drm/aspeed')
0 files changed, 0 insertions, 0 deletions