public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Borislav Petkov <petkov@uni-muenster.de>
To: linux-kernel@vger.kernel.org
Cc: Greg KH <greg@kroah.com>
Subject: [PATCH]  2.6.9-rc1-mm5 remove usb_unlink_urb calls in bluetty.c
Date: Mon, 13 Sep 2004 20:12:17 +0200	[thread overview]
Message-ID: <4145E301.2000209@uni-muenster.de> (raw)

Hi Greg,
hope this time the tabs remain intact. Here's another one:

Signed-off-by: Borislav Petkov <petkov@uni-muenster.de>

--- linux-2.6.9-rc1-mm/drivers/usb/class/bluetty.c.orig 2004-09-13 20:03:23.000000000 +0200
+++ linux-2.6.9-rc1-mm/drivers/usb/class/bluetty.c      2004-09-13 20:04:56.000000000 +0200
@@ -426,8 +426,8 @@ static void bluetooth_close (struct tty_
                 bluetooth->open_count = 0;

                 /* shutdown any in-flight urbs that we know about */
-               usb_unlink_urb (bluetooth->read_urb);
-               usb_unlink_urb (bluetooth->interrupt_in_urb);
+               usb_kill_urb (bluetooth->read_urb);
+               usb_kill_urb (bluetooth->interrupt_in_urb);
         }
         up(&bluetooth->lock);
  }
@@ -705,7 +705,7 @@ void btusb_disable_bulk_read(struct tty_
         }

         if ((bluetooth->read_urb) && (bluetooth->read_urb->actual_length))
-               usb_unlink_urb(bluetooth->read_urb);
+               usb_kill_urb(bluetooth->read_urb);
  }
  #endif

@@ -1187,14 +1187,14 @@ static void usb_bluetooth_disconnect(str
                 bluetooth->open_count = 0;

                 if (bluetooth->read_urb) {
-                       usb_unlink_urb (bluetooth->read_urb);
+                       usb_kill_urb (bluetooth->read_urb);
                         usb_free_urb (bluetooth->read_urb);
                 }
                 if (bluetooth->bulk_in_buffer)
                         kfree (bluetooth->bulk_in_buffer);

                 if (bluetooth->interrupt_in_urb) {
-                       usb_unlink_urb (bluetooth->interrupt_in_urb);
+                       usb_kill_urb (bluetooth->interrupt_in_urb);
                         usb_free_urb (bluetooth->interrupt_in_urb);
                 }
                 if (bluetooth->interrupt_in_buffer)
@@ -1204,7 +1204,7 @@ static void usb_bluetooth_disconnect(str

                 for (i = 0; i < NUM_CONTROL_URBS; ++i) {
                         if (bluetooth->control_urb_pool[i]) {
-                               usb_unlink_urb (bluetooth->control_urb_pool[i]);
+                               usb_kill_urb (bluetooth->control_urb_pool[i]);
                                 if (bluetooth->control_urb_pool[i]->transfer_buffer)
                                         kfree (bluetooth->control_urb_pool[i]->transfer_buffer);
                                 usb_free_urb (bluetooth->control_urb_pool[i]);


                 reply	other threads:[~2004-09-13 18:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4145E301.2000209@uni-muenster.de \
    --to=petkov@uni-muenster.de \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox