Re: [PATCH AUTOSEL 5.0 70/98] tty: fix NULL pointer issue when tty_port ops is not set

2019-05-02 Thread Sasha Levin
On Mon, Apr 22, 2019 at 10:40:02PM +0200, Greg Kroah-Hartman wrote: On Mon, Apr 22, 2019 at 03:41:37PM -0400, Sasha Levin wrote: From: Fabien Dessenne [ Upstream commit f4e68d58cf2b20a581759bbc7228052534652673 ] Unlike 'client_ops' which is initialized to 'default_client_ops', the port

Re: [PATCH AUTOSEL 5.0 70/98] tty: fix NULL pointer issue when tty_port ops is not set

2019-04-22 Thread Greg Kroah-Hartman
On Mon, Apr 22, 2019 at 03:41:37PM -0400, Sasha Levin wrote: > From: Fabien Dessenne > > [ Upstream commit f4e68d58cf2b20a581759bbc7228052534652673 ] > > Unlike 'client_ops' which is initialized to 'default_client_ops', the > port operations 'ops' may be left to NULL. > Check the 'ops' value

[PATCH AUTOSEL 5.0 70/98] tty: fix NULL pointer issue when tty_port ops is not set

2019-04-22 Thread Sasha Levin
From: Fabien Dessenne [ Upstream commit f4e68d58cf2b20a581759bbc7228052534652673 ] Unlike 'client_ops' which is initialized to 'default_client_ops', the port operations 'ops' may be left to NULL. Check the 'ops' value before checking the 'ops->x' value. Signed-off-by: Fabien Dessenne