]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Do not define vma on stack
authorVenkata Sandeep Dhanalakota <venkata.s.dhanalakota@intel.com>
Thu, 16 Sep 2021 16:28:15 +0000 (09:28 -0700)
committerJohn Harrison <John.C.Harrison@Intel.com>
Mon, 20 Sep 2021 19:35:40 +0000 (12:35 -0700)
commit4af3ca253e4ae6d07e560860e42f737994c81ae0
treea31ecb3efa36e47ef2566a54afd5de592c303301
parentc395419084d7bc4ba145fa0ee0ca35406c3b39a6
drm/i915: Do not define vma on stack

Defining vma on stack can cause stack overflow, if
vma gets populated with new fields.

v2:
 (Daniel Vetter)
  - Add kerneldoc for new field

Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Venkata Sandeep Dhanalakota <venkata.s.dhanalakota@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210916162819.27848-2-matthew.brost@intel.com
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.h