lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Mon, 17 Apr 2017 17:07:57 +0800
From:   Songjun Wu <songjun.wu@...rochip.com>
To:     Hans Verkuil <hverkuil@...all.nl>, <nicolas.ferre@...rochip.com>
CC:     <linux-arm-kernel@...ts.infrad>,
        Songjun Wu <songjun.wu@...rochip.com>,
        Mauro Carvalho Chehab <mchehab@...nel.org>,
        <linux-kernel@...r.kernel.org>, <linux-media@...r.kernel.org>
Subject: [PATCH] [media] atmel-isc: Fix the static checker warning

Initialize the pointer 'fmt' before the start of
the loop.

Reported-by: Dan Carpenter <dan.carpenter@...cle.com>
Signed-off-by: Songjun Wu <songjun.wu@...rochip.com>
---

 drivers/media/platform/atmel/atmel-isc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/media/platform/atmel/atmel-isc.c b/drivers/media/platform/atmel/atmel-isc.c
index 7dacf8c1354f..c4b2115559a5 100644
--- a/drivers/media/platform/atmel/atmel-isc.c
+++ b/drivers/media/platform/atmel/atmel-isc.c
@@ -1490,6 +1490,7 @@ static int isc_formats_init(struct isc_device *isc)
 		}
 	}
 
+	fmt = &isc_formats[0];
 	for (i = 0, num_fmts = 0; i < ARRAY_SIZE(isc_formats); i++) {
 		if (fmt->isc_support || fmt->sd_support)
 			num_fmts++;
-- 
2.11.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ