提交 6895aff4 编写于 作者: K Kees Cook 提交者: Bartlomiej Zolnierkiewicz

video: fbdev: sh_mobile_lcdcfb: 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>
Reviewed-by: NGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: NBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
上级 cbbd8607
...@@ -439,9 +439,9 @@ static unsigned long lcdc_sys_read_data(void *handle) ...@@ -439,9 +439,9 @@ static unsigned long lcdc_sys_read_data(void *handle)
} }
static struct sh_mobile_lcdc_sys_bus_ops sh_mobile_lcdc_sys_bus_ops = { static struct sh_mobile_lcdc_sys_bus_ops sh_mobile_lcdc_sys_bus_ops = {
lcdc_sys_write_index, .write_index = lcdc_sys_write_index,
lcdc_sys_write_data, .write_data = lcdc_sys_write_data,
lcdc_sys_read_data, .read_data = lcdc_sys_read_data,
}; };
static int sh_mobile_lcdc_sginit(struct fb_info *info, static int sh_mobile_lcdc_sginit(struct fb_info *info,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册