lkml.org 
[lkml]   [2023]   [Feb]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH v3 2/4] tty: n_gsm: add keep alive support
Date
> > +static int gsm_config_ext(struct gsm_mux *gsm, struct gsm_config_ext *ce)
> > +{
> > + unsigned int i;
> > +
> > + gsm->keep_alive = ce->keep_alive;
> > + /*
> > + * Check that userspace doesn't put stuff in here to prevent breakages
> > + * in the future.
> > + */
> > + for (i = 0; i < ARRAY_SIZE(ce->reserved); i++)
> > + if (ce->reserved[i])
> > + return -EINVAL;
>
> Do the check before you save off the keep_alive variable?

Thank you for this hint!
I will change this and send a new version of this patch series.

Best regards,
Daniel Starke

\
 
 \ /
  Last update: 2023-03-27 00:10    [W:0.064 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site