]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/omap: dsi: Fix excessive stack usage
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Fri, 16 Sep 2022 08:22:05 +0000 (11:22 +0300)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 14 Mar 2023 15:47:11 +0000 (16:47 +0100)
commit55a901bcecb8039ac39b977e7835a8504fcae3c5
tree8db9585ba03d805f61254b3a1a8384da2eb30836
parent6d49b52b63abae7c5e81a25e435f824e6cdcdaea
drm/omap: dsi: Fix excessive stack usage

BugLink: https://bugs.launchpad.net/bugs/2011425
[ Upstream commit cfca78971b9233aef0891507a98fba62046d4542 ]

dsi_dump_dsi_irqs(), a function used for debugfs prints, has a large
struct in its frame, which can result in:

drivers/gpu/drm/omapdrm/dss/dsi.c:1126:1: warning: the frame size of 1060 bytes is larger than 1024 bytes [-Wframe-larger-than=]

As the performance of the function is of no concern, let's allocate the
struct with kmalloc instead.

Compile-tested only.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20220916082206.167427-1-tomi.valkeinen@ideasonboard.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
drivers/gpu/drm/omapdrm/dss/dsi.c