[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2023110139-spearmint-throttle-ed90@gregkh>
Date: Wed, 1 Nov 2023 15:20:05 +0100
From: Greg KH <gregkh@...uxfoundation.org>
To: Ren Mingshuai <renmingshuai@...wei.com>
Cc: davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
jirislaby@...nel.org, caowangbao@...wei.com, yanan@...wei.com,
liaichun@...wei.com, linux-usb@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] tty: hso: Fix potential null pointer dereference
On Wed, Nov 01, 2023 at 09:35:44PM +0800, Ren Mingshuai wrote:
> Generally, the old always points to the address of a ktermios structure,
> so old is unlikely to be NULL. Still check it before dereference as
> elsewhere.
If it can not happen, there is no need to check it. So unless you can
prove that this ever could happen, this change isn't needed, right?
thanks,
greg k-h
Powered by blists - more mailing lists