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: <CANr-f5w8YBr5UpC0rES+5P+A=ojK-9sqRnUMtRtf6VGCk6ifUg@mail.gmail.com>
Date:   Wed, 24 Nov 2021 21:28:35 +0100
From:   Gerhard Engleder <gerhard@...leder-embedded.com>
To:     Yang Li <yang.lee@...ux.alibaba.com>
Cc:     David Miller <davem@...emloft.net>,
        Jakub Kicinski <kuba@...nel.org>,
        netdev <netdev@...r.kernel.org>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH -next 1/2] tsnep: fix resource_size.cocci warnings

>         adapter->addr = devm_ioremap_resource(&pdev->dev, io);
>         if (IS_ERR(adapter->addr))
>                 return PTR_ERR(adapter->addr);
> -       adapter->size = io->end - io->start + 1;
> +       adapter->size = resource_size(io);

In fact adapter->size can be removed completely, because it is used nowhere.
I will submit a patch.

Gerhard

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ