[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACRpkdYHRjUoANEibzexrmGQiVHL4cgYWZPr6H-_GA1HqqpTNw@mail.gmail.com>
Date: Mon, 12 Sep 2016 15:40:13 +0200
From: Linus Walleij <linus.walleij@...aro.org>
To: Colin King <colin.king@...onical.com>
Cc: Alexandre Courbot <gnurou@...il.com>,
"linux-gpio@...r.kernel.org" <linux-gpio@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] gpio: pca953x: initialize ret to zero to avoid returning garbage
On Fri, Sep 9, 2016 at 10:31 AM, Colin King <colin.king@...onical.com> wrote:
> From: Colin Ian King <colin.king@...onical.com>
>
> ret is not initialized so it contains garbage. Ensure garbage
> is not returned in the case that pdata && pdata->teardown is false
> by initializing ret to 0.
>
> Signed-off-by: Colin Ian King <colin.king@...onical.com>
Patch applied.
Yours,
Linus Walleij
Powered by blists - more mailing lists