summaryrefslogtreecommitdiffstats
path: root/drivers/media/pci
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2016-12-17 02:05:36 +0100
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-01-31 10:43:53 +0100
commitc4d27f4b4dc99715317696556d713f9094dca509 (patch)
tree1b89a471146dd30c3a83dcd1e5e448e110eef6e3 /drivers/media/pci
parent[media] mtk-vcodec: use designated initializers (diff)
downloadlinux-c4d27f4b4dc99715317696556d713f9094dca509.tar.xz
linux-c4d27f4b4dc99715317696556d713f9094dca509.zip
[media] solo6x10: 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: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/pci')
-rw-r--r--drivers/media/pci/solo6x10/solo6x10-g723.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/solo6x10/solo6x10-g723.c b/drivers/media/pci/solo6x10/solo6x10-g723.c
index 6a35107aca25..36e93540bb49 100644
--- a/drivers/media/pci/solo6x10/solo6x10-g723.c
+++ b/drivers/media/pci/solo6x10/solo6x10-g723.c
@@ -350,7 +350,7 @@ static int solo_snd_pcm_init(struct solo_dev *solo_dev)
int solo_g723_init(struct solo_dev *solo_dev)
{
- static struct snd_device_ops ops = { NULL };
+ static struct snd_device_ops ops = { };
struct snd_card *card;
struct snd_kcontrol_new kctl;
char name[32];