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>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <538C2C49.9060000@vodafone.de>
Date:	Mon, 02 Jun 2014 09:48:25 +0200
From:	Christian König <deathsimple@...afone.de>
To:	Rickard Strandqvist <rickard_strandqvist@...ctrumdigital.se>,
	Alex Deucher <alexander.deucher@....com>,
	Christian König <christian.koenig@....com>
CC:	linux-kernel@...r.kernel.org, dri-devel@...ts.freedesktop.org
Subject: Re: [PATCH] gpu: drm: radeon: r600_cp.c: Cleaning up uninitialized
 variables

Am 01.06.2014 01:10, schrieb Rickard Strandqvist:
> There is a risk that the variable will be used without being initialized.
>
> This was largely found by using a static code analysis program called cppcheck.
>
> Signed-off-by: Rickard Strandqvist <rickard_strandqvist@...ctrumdigital.se>

On the one hand it looks like a valid fix to me, but on the other hand 
the r600_cp.c code is deprecated for something like five years now.

I would like to avoid touching it in any way and just let it rest 
peacefully until we can remove it entirely.

Christian.

> ---
>   drivers/gpu/drm/radeon/r600_cp.c |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/radeon/r600_cp.c b/drivers/gpu/drm/radeon/r600_cp.c
> index 8c9b7e2..0770ad6 100644
> --- a/drivers/gpu/drm/radeon/r600_cp.c
> +++ b/drivers/gpu/drm/radeon/r600_cp.c
> @@ -2615,7 +2615,7 @@ int r600_cs_legacy_ioctl(struct drm_device *dev, void *data, struct drm_file *fp
>   	struct drm_radeon_cs *cs = data;
>   	struct drm_buf *buf;
>   	unsigned family;
> -	int l, r = 0;
> +	int l = 0, r = 0;
>   	u32 *ib, cs_id = 0;
>   
>   	if (dev_priv == NULL) {

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ