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]
Message-ID: <87po9dhqoi.fsf@intel.com>
Date:   Tue, 24 Oct 2017 11:54:05 +0300
From:   Jani Nikula <jani.nikula@...ux.intel.com>
To:     David Binderman <dcb314@...mail.com>,
        "patrik.r.jakobsson\@gmail.com" <patrik.r.jakobsson@...il.com>,
        "airlied\@linux.ie" <airlied@...ux.ie>,
        "dri-devel\@lists.freedesktop.org" <dri-devel@...ts.freedesktop.org>,
        "linux-kernel\@vger.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: drivers/gpu/drm/gma500/mdfld_intel_display.c:102:37: warning: bitwise comparison always evaluates to false [-Wtautological-compare]

On Mon, 23 Oct 2017, David Binderman <dcb314@...mail.com> wrote:
> Hello there,
>
> Source code is
>
>         if ((temp & PIPEACONF_PIPE_STATE) == 1)
>             break;
>
> but
>
> $ fgrep PIPEACONF_PIPE_STATE `find drivers/gpu/drm/gma500 -name \*.h -print`
> drivers/gpu/drm/gma500/psb_intel_reg.h:#define PIPEACONF_PIPE_STATE		(1 << 30)
> $ 
>
> Suggest new code
>
>         if ((temp & PIPEACONF_PIPE_STATE) != 0)
>             break;

Suggest looking at latest sources. ;)

Fixed by 67a3b63a54cb ("drm: gma500: fix logic error").

BR,
Jani.

-- 
Jani Nikula, Intel Open Source Technology Center

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ