提交 5ca16d8e 编写于 作者: K Kees Cook 提交者: Daniel Vetter

drm/vmwgfx: use designated initializers

Prepare to mark sensitive kernel structures for randomization by making
sure they're using designated initializers. These were identified during
allyesconfig builds of x86, arm, and arm64, with most initializer fixes
extracted from grsecurity.
Signed-off-by: NKees Cook <keescook@chromium.org>
Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20161217010402.GA140546@beast
上级 4e98c378
...@@ -164,9 +164,9 @@ static void vmw_gmrid_man_debug(struct ttm_mem_type_manager *man, ...@@ -164,9 +164,9 @@ static void vmw_gmrid_man_debug(struct ttm_mem_type_manager *man,
} }
const struct ttm_mem_type_manager_func vmw_gmrid_manager_func = { const struct ttm_mem_type_manager_func vmw_gmrid_manager_func = {
vmw_gmrid_man_init, .init = vmw_gmrid_man_init,
vmw_gmrid_man_takedown, .takedown = vmw_gmrid_man_takedown,
vmw_gmrid_man_get_node, .get_node = vmw_gmrid_man_get_node,
vmw_gmrid_man_put_node, .put_node = vmw_gmrid_man_put_node,
vmw_gmrid_man_debug .debug = vmw_gmrid_man_debug
}; };
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册