linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bluez-devel] Oops on removing bluetooth CF card while in use
@ 2006-02-04 22:35 Pavel Machek
  2006-02-07 11:02 ` Marcel Holtmann
  0 siblings, 1 reply; 2+ messages in thread
From: Pavel Machek @ 2006-02-04 22:35 UTC (permalink / raw)
  To: bluez-devel

Hi!

I'm getting small saga with CF bluetooth card... can anyone help?

http://bugzilla.kernel.org/show_bug.cgi?id=5958

							Pavel
-- 
Thanks, Sharp!


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Bluez-devel] Oops on removing bluetooth CF card while in use
  2006-02-04 22:35 [Bluez-devel] Oops on removing bluetooth CF card while in use Pavel Machek
@ 2006-02-07 11:02 ` Marcel Holtmann
  0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2006-02-07 11:02 UTC (permalink / raw)
  To: bluez-devel; +Cc: bluez-devel

[-- Attachment #1: Type: text/plain, Size: 457 bytes --]

Hi Pavel,

> I'm getting small saga with CF bluetooth card... can anyone help?
> 
> http://bugzilla.kernel.org/show_bug.cgi?id=5958

do you have the full oops message for me? However it has been a while
since I worked with serial line disciplines and the serial subsystem is
changing too often, that I lost track. Does the attached patch helps or
is the problem another one. Do we need to keep track of the hangup in
the serial subsystem?

Regards

Marcel


[-- Attachment #2: patch --]
[-- Type: text/x-patch, Size: 497 bytes --]

diff --git a/drivers/bluetooth/hci_ldisc.c b/drivers/bluetooth/hci_ldisc.c
index 613673b..3366bba 100644
--- a/drivers/bluetooth/hci_ldisc.c
+++ b/drivers/bluetooth/hci_ldisc.c
@@ -192,7 +192,7 @@ static int hci_uart_flush(struct hci_dev
 
 	/* Flush any pending characters in the driver and discipline. */
 	tty_ldisc_flush(tty);
-	if (tty->driver->flush_buffer)
+	if (tty->driver && tty->driver->flush_buffer)
 		tty->driver->flush_buffer(tty);
 
 	if (test_bit(HCI_UART_PROTO_SET, &hu->flags))

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-02-07 11:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-04 22:35 [Bluez-devel] Oops on removing bluetooth CF card while in use Pavel Machek
2006-02-07 11:02 ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).