Re: [PATCH v2] tty: n_gsm: restrict tty devices to attach

From: Linus Torvalds
Date: Tue Apr 23 2024 - 12:37:42 EST


On Tue, 23 Apr 2024 at 08:26, Tetsuo Handa
<penguin-kernel@xxxxxxxxxxxxxxxxxxx> wrote:
>
> On 2024/04/22 1:04, Linus Torvalds wrote:
> >
> > Actually, another option would be to just return an error at 'set_ldisc()' time.
>
> This patch works for me. You can propose a formal patch.

Ok, I wrote a commit message, added your tested-by, and sent it out

https://lore.kernel.org/all/20240423163339.59780-1-torvalds@xxxxxxxxxxxxxxxxxxxx/

let's see if anybody has better ideas, but that patch at least looks
palatable to me.

Linus