aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ubifs/commit.c
diff options
context:
space:
mode:
authorBob Paauwe <[email protected]>2014-12-18 17:51:26 +0000
committerJani Nikula <[email protected]>2015-01-26 09:00:33 +0000
commitaf1a7301c7cf8912dca03065d448c4437c5c239f (patch)
tree0b11d6c7a0a9b15ac8ad2a46352e250f1d5e395d /fs/ubifs/commit.c
parentdrm/i915: fix inconsistent brightness after resume (diff)
downloadkernel-af1a7301c7cf8912dca03065d448c4437c5c239f.tar.gz
kernel-af1a7301c7cf8912dca03065d448c4437c5c239f.zip
drm/i915: Only fence tiled region of object.
When creating a fence for a tiled object, only fence the area that makes up the actual tiles. The object may be larger than the tiled area and if we allow those extra addresses to be fenced, they'll get converted to addresses beyond where the object is mapped. This opens up the possiblity of writes beyond the end of object. To prevent this, we adjust the size of the fence to only encompass the area that makes up the actual tiles. The extra space is considered un-tiled and now behaves as if it was a linear object. Testcase: igt/gem_tiled_fence_overflow Reported-by: Dan Hettena <[email protected]> Signed-off-by: Bob Paauwe <[email protected]> Reviewed-by: Daniel Vetter <[email protected]> Cc: [email protected] Signed-off-by: Jani Nikula <[email protected]>
Diffstat (limited to 'fs/ubifs/commit.c')
0 files changed, 0 insertions, 0 deletions