diff options
author | Thierry Reding <[email protected]> | 2019-09-16 16:19:23 +0200 |
---|---|---|
committer | Ben Skeggs <[email protected]> | 2019-09-17 14:50:15 +1000 |
commit | 9ca7f7968be74ebf02f3a89d605d36bcb636560e (patch) | |
tree | e00316844cb29b935146964e4e14e8c9ca3412b8 /net/switchdev/switchdev.c | |
parent | 698c1aa9f83b618de79e9e5e19a58f70a4a6ae0f (diff) |
drm/nouveau: Fix fallout from reservation object rework
Commit 019cbd4a4feb ("drm/nouveau: Initialize GEM object before TTM
object") introduced a subtle change in how the buffer allocation size is
handled. Prior to that change, the size would get aligned to at least a
page, whereas after that change a non-page-aligned size would get passed
through unmodified. This ultimately causes a BUG_ON() to trigger in
drm_gem_private_object_init() and crashes the system.
Fix this by restoring the code that align the allocation size.
Fixes: 019cbd4a4feb ("drm/nouveau: Initialize GEM object before TTM object")
Reported-by: Ilia Mirkin <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Signed-off-by: Ben Skeggs <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions