summaryrefslogtreecommitdiff
path: root/net/dsa
diff options
context:
space:
mode:
authorJordan Crouse <jcrouse@codeaurora.org>2017-03-07 10:02:51 -0700
committerRob Clark <robdclark@gmail.com>2017-04-08 06:59:32 -0400
commit0041ba396dd19c22aa884cffd2a50d8bbdb46b48 (patch)
treedb5aa6cb9284d58650ad8e1a40d85f4da8576c51 /net/dsa
parent22dd5c14be471564f80b270297b2d3a33906a7fb (diff)
drm/msm: Don't allow zero sized buffer objects
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 #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 <jcrouse@codeaurora.org> Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'net/dsa')
0 files changed, 0 insertions, 0 deletions