diff options
author | Bryan O'Donoghue | 2016-06-10 18:33:03 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2016-06-11 01:26:31 +0200 |
commit | 6db9cc68d7f9cea440293af4225a7b7f22d1d86d (patch) | |
tree | 1462123ea71f6c34500d5fd1b83e43ebb24c2f1f /drivers/staging/greybus/uart.c | |
parent | greybus: audio: Ratelimit err messages in bundle, topology driver (diff) | |
download | kernel-qcow2-linux-6db9cc68d7f9cea440293af4225a7b7f22d1d86d.tar.gz kernel-qcow2-linux-6db9cc68d7f9cea440293af4225a7b7f22d1d86d.tar.xz kernel-qcow2-linux-6db9cc68d7f9cea440293af4225a7b7f22d1d86d.zip |
greybus: uart: Fix minor number leak
On the gb_uart_remove() path we are forgetting to do a release_minor()
leading to a minor number leak. This is a simple one-line fix.
Tested on EVT 2.0
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/uart.c')
-rw-r--r-- | drivers/staging/greybus/uart.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/greybus/uart.c b/drivers/staging/greybus/uart.c index d1611abf8ccd..7460bdbd0a1a 100644 --- a/drivers/staging/greybus/uart.c +++ b/drivers/staging/greybus/uart.c @@ -969,6 +969,7 @@ static void gb_uart_remove(struct gbphy_device *gbphy_dev) gb_connection_disable(connection); tty_port_destroy(&gb_tty->port); gb_connection_destroy(connection); + release_minor(gb_tty); kfifo_free(&gb_tty->write_fifo); kfree(gb_tty->buffer); kfree(gb_tty); |