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: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Dan Carpenter 2012-07-24 12:51:52 +01:00 коммит произвёл Greg Kroah-Hartman
Родитель 6b9563a714
Коммит 4ac5d7050e
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -1450,6 +1450,7 @@ void tty_free_termios(struct tty_struct *tty)
pr_warn("tty: no memory to save termios state.\n");
return;
}
tty->driver->termios[idx] = tp;
}
*tp = tty->termios;
}