Skip to content

Commit 0738abc

Browse files
Jiri Slaby (SUSE)gregkh
authored andcommitted
tty: caif: do not use N_TTY_BUF_SIZE
N_TTY_BUF_SIZE -- as the name suggests -- is the N_TTY's buffer size. There is no reason to couple that to caif's tty->receive_room. Use 4096 directly -- even though, it should be some sort of "SKB_MAX_ALLOC" or alike. But definitely not N_TTY_BUF_SIZE. N_TTY_BUF_SIZE is private and will be moved to n_tty.c later. Signed-off-by: Jiri Slaby (SUSE) <[email protected]> Acked-by: Jakub Kicinski <[email protected]> Cc: Andrew Lunn <[email protected]> Cc: David S. Miller <[email protected]> Cc: Eric Dumazet <[email protected]> Cc: Paolo Abeni <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent ec1132d commit 0738abc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/caif/caif_serial.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ static int ldisc_open(struct tty_struct *tty)
344344
ser->tty = tty_kref_get(tty);
345345
ser->dev = dev;
346346
debugfs_init(ser, tty);
347-
tty->receive_room = N_TTY_BUF_SIZE;
347+
tty->receive_room = 4096;
348348
tty->disc_data = ser;
349349
set_bit(TTY_DO_WRITE_WAKEUP, &tty->flags);
350350
rtnl_lock();

0 commit comments

Comments
 (0)