Re: [PATCH] jsm_tty: Fix a possible null pointer dereference in two functions

From: Dan Carpenter
Date: Wed Nov 29 2017 - 14:16:44 EST


On Wed, Nov 29, 2017 at 09:23:07AM -0800, Joe Perches wrote:
> On Wed, 2017-11-29 at 17:40 +0100, SF Markus Elfring wrote:
> > From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
> > Date: Wed, 29 Nov 2017 17:30:36 +0100
> >
> > Move two debug messages so that a null pointer access can not happen
> > for the variable "ch" in these functions.
>
> An actual defect fix!
>
> Here you could probably cc stable too.
>

These aren't real bugs because "ch" is never NULL.

regards,
dan carpenter