Commit:     93d807401ced2320d0d1e56bf9de099bba5c0424
Parent:     6e46c8cb3cbfa7bafe78d43a3d57750605a2dfa3
Author:     Dave Young <[EMAIL PROTECTED]>
AuthorDate: Tue Feb 5 03:12:06 2008 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Tue Feb 5 03:12:06 2008 -0800

    bluetooth rfcomm tty: destroy before tty_close()
    rfcomm dev could be deleted in tty_hangup, so we must not call
    rfcomm_dev_del again to prevent from destroying rfcomm dev before tty
    Signed-off-by: Dave Young <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
 net/bluetooth/rfcomm/tty.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/net/bluetooth/rfcomm/tty.c b/net/bluetooth/rfcomm/tty.c
index 788c703..e4c779b 100644
--- a/net/bluetooth/rfcomm/tty.c
+++ b/net/bluetooth/rfcomm/tty.c
@@ -429,7 +429,8 @@ static int rfcomm_release_dev(void __user *arg)
        if (dev->tty)
-       rfcomm_dev_del(dev);
+       if (!test_bit(RFCOMM_RELEASE_ONHUP, &dev->flags))
+               rfcomm_dev_del(dev);
        return 0;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to