From mboxrd@z Thu Jan 1 00:00:00 1970 From: Linus Walleij Subject: Re: [PATCH] gpio: xra1403: Switch to a fixed upper bound for registers Date: Thu, 12 Apr 2018 10:17:05 +0200 Message-ID: References: <20180409210717.3852-1-labbott@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: In-Reply-To: <20180409210717.3852-1-labbott@redhat.com> Sender: linux-kernel-owner@vger.kernel.org To: Laura Abbott Cc: Nandor Han , Geert Uytterhoeven , Kees Cook , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , kernel-hardening@lists.openwall.com List-Id: linux-gpio@vger.kernel.org On Mon, Apr 9, 2018 at 11:07 PM, Laura Abbott wrote: > Geert Uytterhoeven pointed out that the number of register was a > fixed upper bound so there's no need to use a dynamically allocated > array in place of a VLA. Use the defined upper bound. > > Suggested-by: Geert Uytterhoeven > Signed-off-by: Laura Abbott Patch applied for v4.18! Yours, Linus Walleij