public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* RE: [PATCH 4/4] tty: n_gsm: fix missing corner cases in gsmld_poll()
@ 2022-07-07  7:00 Starke, Daniel
  2022-07-07  7:34 ` Jiri Slaby
  0 siblings, 1 reply; 3+ messages in thread
From: Starke, Daniel @ 2022-07-07  7:00 UTC (permalink / raw)
  To: Jiri Slaby, linux-serial@vger.kernel.org,
	gregkh@linuxfoundation.org
  Cc: linux-kernel@vger.kernel.org

> > @@ -3051,14 +3051,20 @@ static __poll_t gsmld_poll(struct tty_struct *tty, struct file *file,
> >   	__poll_t mask = 0;
> >   	struct gsm_mux *gsm = tty->disc_data;
> >   
> > +	if (!gsm)
> > +		return EPOLLHUP;
> 
> Hmm, how can this happen? It's a tty bug if it calls ld ops after NULLing
> disc_data.

I can remove this check if it is redundant. Should I?

Best regards,
Daniel Starke

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-07-07  7:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20220706054452.3663-1-daniel.starke@siemens.com>
     [not found] ` <20220706054452.3663-4-daniel.starke@siemens.com>
2022-07-07  6:48   ` [PATCH 4/4] tty: n_gsm: fix missing corner cases in gsmld_poll() Jiri Slaby
2022-07-07  7:00 Starke, Daniel
2022-07-07  7:34 ` Jiri Slaby

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox