Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 366928 Details for
Bug 474432
>=sys-kernel/gentoo-sources-3.8 - Ripup of bluetooth rfcomm causes oops/machine hang.
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
part two of 3.12.6 patch to fix userspace differences in rfcomm
modman.patch (text/plain), 1.52 KB, created by
Ben
on 2014-01-04 04:44:13 UTC
(
hide
)
Description:
part two of 3.12.6 patch to fix userspace differences in rfcomm
Filename:
MIME Type:
Creator:
Ben
Created:
2014-01-04 04:44:13 UTC
Size:
1.52 KB
patch
obsolete
>diff --git a/net/bluetooth/rfcomm/tty.c b/net/bluetooth/rfcomm/tty.c >index 0357dcf..90c1872 100644 >--- a/net/bluetooth/rfcomm/tty.c >+++ b/net/bluetooth/rfcomm/tty.c >@@ -124,9 +124,6 @@ static void rfcomm_dev_shutdown(struct tty_port *port) > { > struct rfcomm_dev *dev = container_of(port, struct rfcomm_dev, port); > >- if (dev->tty_dev->parent) >- device_move(dev->tty_dev, NULL, DPM_ORDER_DEV_LAST); >- > /* close the dlc */ > rfcomm_dlc_close(dev->dlc, 0); > } >@@ -577,9 +574,6 @@ static void rfcomm_dev_state_change(struct rfcomm_dlc *dlc, int err) > > dev->err = err; > if (dlc->state == BT_CONNECTED) { >- device_move(dev->tty_dev, rfcomm_get_device(dev), >- DPM_ORDER_DEV_AFTER_PARENT); >- > wake_up_interruptible(&dev->port.open_wait); > } else if (dlc->state == BT_CLOSED) > tty_port_tty_hangup(&dev->port, false); >@@ -632,6 +626,9 @@ static void rfcomm_tty_cleanup(struct tty_struct *tty) > { > struct rfcomm_dev *dev = tty->driver_data; > >+ if (dev->tty_dev->parent) >+ device_move(dev->tty_dev, NULL, DPM_ORDER_DEV_LAST); >+ > clear_bit(RFCOMM_TTY_ATTACHED, &dev->flags); > > rfcomm_dlc_lock(dev->dlc); >@@ -674,6 +671,9 @@ static int rfcomm_tty_install(struct tty_driver *driver, struct tty_struct *tty) > if (err) > rfcomm_tty_cleanup(tty); > >+ device_move(dev->tty_dev, rfcomm_get_device(dev), >+ DPM_ORDER_DEV_AFTER_PARENT); >+ > /* take over the tty_port reference if it was created with the > * flag RFCOMM_RELEASE_ONHUP. This will force the release of the port > * when the last process closes the tty. This behaviour is expected by
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 474432
:
351696
|
366926
| 366928 |
368038
|
368044
|
368046
|
368048