lkml.org 
[lkml]   [2021]   [Apr]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v2] PCI: Check value of resource alignment before using __ffs
    On Thu, Apr 22, 2021 at 04:25:38PM +0530, Amey Narkhede wrote:
    > Return value of __ffs is undefined if no set bit exists in
    > its argument. This indicates that the associated BAR has
    > invalid alignment.
    >
    > Signed-off-by: Amey Narkhede <ameynarkhede03@gmail.com>
    > ---
    > drivers/pci/setup-bus.c | 9 +++++----
    > 1 file changed, 5 insertions(+), 4 deletions(-)
    >

    Thanks,
    Reviewed-by: Leon Romanovsky <leonro@nvidia.com>

    \
     
     \ /
      Last update: 2021-04-22 12:58    [W:2.316 / U:0.164 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site