Skip to content

Commit

Permalink
drm/msm: Don't allow zero sized buffer objects
Browse files Browse the repository at this point in the history
Zero sized buffer objects tend to make various bits of the GEM
infrastructure complain:

 WARNING: CPU: 1 PID: 2323 at drivers/gpu/drm/drm_mm.c:389 drm_mm_insert_node_generic+0x258/0x2f0
 Modules linked in:

 CPU: 1 PID: 2323 Comm: drm-api-test Tainted: G        W 4.9.0-rc4-00906-g693af44 torvalds#213
 Hardware name: Qualcomm Technologies, Inc. DB820c (DT)
 task: ffff8000d7353400 task.stack: ffff8000d7720000
 PC is at drm_mm_insert_node_generic+0x258/0x2f0
 LR is at drm_vma_offset_add+0x4c/0x70

Zero sized buffers serve no appreciable value to the user so disallow
them at create time.

Signed-off-by: Jordan Crouse <[email protected]>
Signed-off-by: Rob Clark <[email protected]>
  • Loading branch information
Jordan Crouse authored and berolinaro committed Jun 17, 2017
1 parent bbeea2a commit 77a60a3
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 77a60a3

Please sign in to comment.