diff options
author | 2017-01-11 17:09:50 +0100 | |
---|---|---|
committer | 2017-01-11 17:09:50 +0100 | |
commit | a641261e999842bee7326b2d0e84bf2214f03022 (patch) | |
tree | d3eb006ce91c89b37252569a234a9de68b3e2b95 /drivers/video/fbdev/matrox/matroxfb_Ti3026.c | |
parent | video: fbdev: sh_mobile_lcdcfb: use designated initializers (diff) | |
download | linux-dev-a641261e999842bee7326b2d0e84bf2214f03022.tar.xz linux-dev-a641261e999842bee7326b2d0e84bf2214f03022.zip |
video: fbdev: matroxfb: 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: Kees Cook <keescook@chromium.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Diffstat (limited to 'drivers/video/fbdev/matrox/matroxfb_Ti3026.c')
-rw-r--r-- | drivers/video/fbdev/matrox/matroxfb_Ti3026.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/video/fbdev/matrox/matroxfb_Ti3026.c b/drivers/video/fbdev/matrox/matroxfb_Ti3026.c index 68fa037d8cbc..9ff9be85759e 100644 --- a/drivers/video/fbdev/matrox/matroxfb_Ti3026.c +++ b/drivers/video/fbdev/matrox/matroxfb_Ti3026.c @@ -738,7 +738,10 @@ static int Ti3026_preinit(struct matrox_fb_info *minfo) } struct matrox_switch matrox_millennium = { - Ti3026_preinit, Ti3026_reset, Ti3026_init, Ti3026_restore + .preinit = Ti3026_preinit, + .reset = Ti3026_reset, + .init = Ti3026_init, + .restore = Ti3026_restore }; EXPORT_SYMBOL(matrox_millennium); #endif |