Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4ac5d705 authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman
Browse files

tty: fix missing assignment



We're trying to save the termios state and we need to allocate a buffer
to do it.  Smatch complains that the buffer is leaked at the end of the
function.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6b9563a7
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -1450,6 +1450,7 @@ void tty_free_termios(struct tty_struct *tty)
			pr_warn("tty: no memory to save termios state.\n");
			pr_warn("tty: no memory to save termios state.\n");
			return;
			return;
		}
		}
		tty->driver->termios[idx] = tp;
	}
	}
	*tp = tty->termios;
	*tp = tty->termios;
}
}