From patchwork Sat Dec 17 01:05:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kees Cook X-Patchwork-Id: 9478833 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 11BEC60827 for ; Sat, 17 Dec 2016 01:06:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 021B42870F for ; Sat, 17 Dec 2016 01:06:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E83232871B; Sat, 17 Dec 2016 01:06:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8E13C2866B for ; Sat, 17 Dec 2016 01:06:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758087AbcLQBFv (ORCPT ); Fri, 16 Dec 2016 20:05:51 -0500 Received: from mail-pg0-f41.google.com ([74.125.83.41]:32865 "EHLO mail-pg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936094AbcLQBFn (ORCPT ); Fri, 16 Dec 2016 20:05:43 -0500 Received: by mail-pg0-f41.google.com with SMTP id 3so37738848pgd.0 for ; Fri, 16 Dec 2016 17:05:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=0hWyM8PpPJzeEmD/03OcpxHF3uP2McjSCySoM7x3Xr0=; b=JnADv+jQcWR3zbrqN2Kkuph3bmdtbGMu56rlIV9/Ls+78HrRiw7xvRv4DNUX7uTwAW gfUVZp+rA8X5Zywm8YaTJ0VnVE8tzvTog6m7BY2Va3NcdRT3o0/eziu7qgYQeARqJ4xf oRt4q4flxvG8SWKLPZCBy5ncScXTot19WXtOs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=0hWyM8PpPJzeEmD/03OcpxHF3uP2McjSCySoM7x3Xr0=; b=LjC6sp/UHkCqnKYlxWvCous0OsoeVSI+f7z200IXMHcfkkiAEw2vxMKevl9OWrMhFJ w7whIC/UIb/XjmNsdnyWBB9YLicOOqg8gf0cWfNhqr6H+wDcuNeywbAtGZZGgEITNPCu BCyK8zz7IonXPCuX36jSeRYMIk70qOaYCiPNlEcOpOxBjIXM0+vvOEiX/HxTBIfpus7g xISPiW0mvEuId1wPvQX1bHv8yf5LRcfZlQdL/ySFfKq3KO7wWsUS4+S8XyazO2Q24dda /Tk0yQXg7uR0YcvkAXcqBPmOV3qQwsQDN7yAi1yrwNzIfDDeR3QRAPYb1l/Ol6sX0vkH BEig== X-Gm-Message-State: AKaTC00B6SgLNtEOlFVGsSmTBLxYBbpxZvK3pvoocq/+QEYzFUphBE6rXns0ZMJYOotVhfdI X-Received: by 10.98.7.83 with SMTP id b80mr5784168pfd.79.1481936737981; Fri, 16 Dec 2016 17:05:37 -0800 (PST) Received: from www.outflux.net ([2002:ada4:7085:0:8454:20a8:3cd7:bcbf]) by smtp.gmail.com with ESMTPSA id z62sm14406938pfz.19.2016.12.16.17.05.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Dec 2016 17:05:37 -0800 (PST) Date: Fri, 16 Dec 2016 17:05:36 -0800 From: Kees Cook To: linux-kernel@vger.kernel.org Cc: Bluecherry Maintainers , Andrey Utkin , Ismael Luceno , Mauro Carvalho Chehab , linux-media@vger.kernel.org Subject: [PATCH] solo6x10: use designated initializers Message-ID: <20161217010536.GA140725@beast> MIME-Version: 1.0 Content-Disposition: inline Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- drivers/media/pci/solo6x10/solo6x10-g723.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];