[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20140526102301.GA13785@devel.8.8.4.4>
Date: Mon, 26 May 2014 19:23:01 +0900
From: Daeseok Youn <daeseok.youn@...il.com>
To: lidza.louina@...il.com, gregkh@...uxfoundation.org
Cc: markh@...pro.net, driverdev-devel@...uxdriverproject.org,
devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org
Subject: [PATCH 1/4] staging: dgap: remove unneeded kfree() for ttys in
tty_driver
In destruct_tty_driver() from put_tty_driver() will free the
ttys in tty_driver.
Signed-off-by: Daeseok Youn <daeseok.youn@...il.com>
---
drivers/staging/dgap/dgap.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c
index 1475532..60b7d70 100644
--- a/drivers/staging/dgap/dgap.c
+++ b/drivers/staging/dgap/dgap.c
@@ -1503,8 +1503,6 @@ static void dgap_tty_uninit(struct board_t *brd)
tty_unregister_device(brd->serial_driver, i);
}
tty_unregister_driver(brd->serial_driver);
- kfree(brd->serial_driver->ttys);
- brd->serial_driver->ttys = NULL;
put_tty_driver(brd->serial_driver);
kfree(brd->serial_ports);
brd->dgap_major_serial_registered = FALSE;
@@ -1520,8 +1518,6 @@ static void dgap_tty_uninit(struct board_t *brd)
tty_unregister_device(brd->print_driver, i);
}
tty_unregister_driver(brd->print_driver);
- kfree(brd->print_driver->ttys);
- brd->print_driver->ttys = NULL;
put_tty_driver(brd->print_driver);
kfree(brd->printer_ports);
brd->dgap_major_transparent_print_registered = FALSE;
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists