[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <48c6dbb-7f42-33aa-c62f-e04a198a63@linux.intel.com>
Date: Thu, 12 Jan 2023 11:42:05 +0200 (EET)
From: Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>
To: "Jiri Slaby (SUSE)" <jirislaby@...nel.org>
cc: gregkh@...uxfoundation.org, Kees Cook <keescook@...omium.org>,
linux-serial@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 06/11] tty: vt: remove struct uni_screen
On Thu, 12 Jan 2023, Jiri Slaby (SUSE) wrote:
> It contains only lines with pointers to characters (u32s). So use
> simple clear 'u32 **lines' all over the code.
>
> This avoids zero-length arrays. It also makes the allocation less
> error-prone (size of the struct wasn't taken into account at all).
>
> Signed-off-by: Jiri Slaby (SUSE) <jirislaby@...nel.org>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>
--
i.
Powered by blists - more mailing lists