[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190307.092943.881338723409230235.davem@davemloft.net>
Date: Thu, 07 Mar 2019 09:29:43 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: arnd@...db.de
Cc: isdn@...ux-pingi.de, ndesaulniers@...gle.com,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] isdn: isdnloop: fix pointer dereference bug
From: Arnd Bergmann <arnd@...db.de>
Date: Thu, 7 Mar 2019 10:32:07 +0100
> clang has spotted an ancient code bug and warns about it with:
>
> drivers/isdn/isdnloop/isdnloop.c:573:12: error: address of array 'card->rcard' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
>
> This is an array of pointers, so we should check if a specific
> pointer exists in the array before using it, not whether the
> array itself exists.
>
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
Applied.
Powered by blists - more mailing lists