From: "Gustavo F. Padovan" <padovan@xxxxxxxxxxxxxx> Use port->msg has the same effect of using port->io. --- serial/port.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/serial/port.c b/serial/port.c index 3f041a6..bc4b4ea 100644 --- a/serial/port.c +++ b/serial/port.c @@ -149,7 +149,7 @@ static int port_release(struct serial_port *port) int err = 0; if (port->id < 0) { - if (port->io) { + if (port->msg) { g_io_channel_shutdown(port->io, TRUE, NULL); g_io_channel_unref(port->io); port->io = NULL; -- 1.7.6 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html