[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a571b1cb-ce63-2efa-10b2-990f84da2f20@suse.cz>
Date: Thu, 30 Nov 2017 07:41:11 +0100
From: Jiri Slaby <jslaby@...e.cz>
To: SF Markus Elfring <elfring@...rs.sourceforge.net>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-serial@...r.kernel.org
Cc: "Guilherme G. Piccoli" <gpiccoli@...ux.vnet.ibm.com>,
Joe Perches <joe@...ches.com>, kernel-janitors@...r.kernel.org,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: jsm_tty: Fix a possible null pointer dereference in two functions
On 11/29/2017, 07:19 PM, SF Markus Elfring wrote:
>>> It's pretty unlikely, but it is an actual defect.
>>
>> No it is not, those variables will never be set to NULL,
>> so this can never be triggered. Walk up the call chain.
>
> If the involved software developers are convinced about the validity
> of this pointer:
>
> How do you think about to delete the following condition check
> instead in the discussed function implementations?
>
> if (!ch)
> return;
ACK
thanks,
--
js
suse labs
Powered by blists - more mailing lists