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] [day] [month] [year] [list]
Message-ID: <CACRpkdaaMfBAb_-bHstsK2fyNR2j7VO8yOZ-fqKS7jbDayXb9w@mail.gmail.com>
Date:   Wed, 11 Jan 2017 16:02:02 +0100
From:   Linus Walleij <linus.walleij@...aro.org>
To:     Stephen Boyd <sboyd@...eaurora.org>
Cc:     Alexandre Courbot <gnurou@...il.com>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        "linux-gpio@...r.kernel.org" <linux-gpio@...r.kernel.org>
Subject: Re: [PATCH] gpio: Remove impossible checks on container_of() result

On Mon, Jan 9, 2017 at 8:47 PM, Stephen Boyd <sboyd@...eaurora.org> wrote:

> container_of() does pointer math on the pointer that's passed in.
> If it were to return a NULL pointer the value passed in would
> need to be perfectly offset from 0 to make that so. Remove these
> checks because they don't make sense.
>
> Signed-off-by: Stephen Boyd <sboyd@...eaurora.org>

Good point.

Patch applied.

Yours,
Linus Walleij

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ