From: Tilman Schmidt <tilman@imap.cc>
To: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Cc: Andrew Morton <akpm@osdl.org>, Greg KH <greg@kroah.com>,
linux-kernel@vger.kernel.org,
linux-usb-devel@lists.sourceforge.net
Subject: Re: [linux-usb-devel] [PATCH 4/33] usb: usb-gigaset free kill urb cleanup
Date: Fri, 24 Nov 2006 19:19:04 +0100 [thread overview]
Message-ID: <45673798.1010808@imap.cc> (raw)
In-Reply-To: <200611081534.18562.m.kozlowski@tuxland.pl>
[-- Attachment #1: Type: text/plain, Size: 1817 bytes --]
Sorry for the late reply. I had overlooked this.
Am 08.11.2006 15:34 schrieb Mariusz Kozlowski:
> Hello,
>
> - usb_free_urb() cleanup
> - usb_kill_urb() cleanup
>
> Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Acked-by: Tilman Schmidt <tilman@imap.cc>
> --- linux-2.6.19-rc4-orig/drivers/isdn/gigaset/usb-gigaset.c 2006-11-06 17:07:30.000000000 +0100
> +++ linux-2.6.19-rc4/drivers/isdn/gigaset/usb-gigaset.c 2006-11-07 16:51:17.000000000 +0100
> @@ -815,14 +815,11 @@ static int gigaset_probe(struct usb_inte
> return 0;
>
> error:
> - if (ucs->read_urb)
> - usb_kill_urb(ucs->read_urb);
> + usb_kill_urb(ucs->read_urb);
> kfree(ucs->bulk_out_buffer);
> - if (ucs->bulk_out_urb != NULL)
> - usb_free_urb(ucs->bulk_out_urb);
> + usb_free_urb(ucs->bulk_out_urb);
> kfree(cs->inbuf[0].rcvbuf);
> - if (ucs->read_urb != NULL)
> - usb_free_urb(ucs->read_urb);
> + usb_free_urb(ucs->read_urb);
> usb_set_intfdata(interface, NULL);
> ucs->read_urb = ucs->bulk_out_urb = NULL;
> cs->inbuf[0].rcvbuf = ucs->bulk_out_buffer = NULL;
> @@ -850,11 +847,9 @@ static void gigaset_disconnect(struct us
> usb_kill_urb(ucs->bulk_out_urb); /* FIXME: only if active? */
>
> kfree(ucs->bulk_out_buffer);
> - if (ucs->bulk_out_urb != NULL)
> - usb_free_urb(ucs->bulk_out_urb);
> + usb_free_urb(ucs->bulk_out_urb);
> kfree(cs->inbuf[0].rcvbuf);
> - if (ucs->read_urb != NULL)
> - usb_free_urb(ucs->read_urb);
> + usb_free_urb(ucs->read_urb);
> ucs->read_urb = ucs->bulk_out_urb = NULL;
> cs->inbuf[0].rcvbuf = ucs->bulk_out_buffer = NULL;
--
Tilman Schmidt E-Mail: tilman@imap.cc
Bonn, Germany
Diese Nachricht besteht zu 100% aus wiederverwerteten Bits.
Ungeöffnet mindestens haltbar bis: (siehe Rückseite)
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 253 bytes --]
next prev parent reply other threads:[~2006-11-24 18:16 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-06 21:28 [PATCH 2.6.19-rc4] usb urb unlink/free clenup Mariusz Kozlowski
2006-11-07 2:49 ` Andrew Morton
2006-11-07 9:30 ` Mariusz Kozlowski
2006-11-07 9:37 ` Andrew Morton
2006-11-08 14:33 ` [PATCH 1/33] usb: writing_usb_driver free urb cleanup Mariusz Kozlowski
2006-11-08 14:34 ` [PATCH 2/33] usb: pcwd_usb " Mariusz Kozlowski
2006-11-08 14:34 ` [PATCH 3/33] usb: iforce-usb " Mariusz Kozlowski
2006-11-08 14:34 ` [PATCH 4/33] usb: usb-gigaset free kill " Mariusz Kozlowski
2006-11-24 18:19 ` Tilman Schmidt [this message]
2006-11-08 14:34 ` [PATCH 5/33] usb: cinergyT2 " Mariusz Kozlowski
2006-11-08 14:34 ` [PATCH 6/33] usb: ttusb_dec free " Mariusz Kozlowski
2006-11-08 14:34 ` [PATCH 7/33] usb: pvrusb2-hdw free unlink " Mariusz Kozlowski
2006-11-08 14:34 ` [PATCH 8/33] usb: pvrusb2-io free " Mariusz Kozlowski
2006-11-08 14:34 ` [PATCH 9/33] usb: pwc-if " Mariusz Kozlowski
2006-11-08 14:34 ` [PATCH 10/33] usb: sn9c102_core " Mariusz Kozlowski
2006-11-08 14:35 ` [PATCH 11/33] usb: quickcam_messenger " Mariusz Kozlowski
2006-11-08 14:35 ` [PATCH 12/33] usb: zc0301_core " Mariusz Kozlowski
2006-11-08 14:35 ` [PATCH 13/33] usb: irda-usb " Mariusz Kozlowski
2006-11-08 14:35 ` [PATCH 14/33] usb: zd1201 " Mariusz Kozlowski
2006-11-08 14:35 ` [PATCH 15/33] usb: ati_remote " Mariusz Kozlowski
2006-11-08 14:35 ` [PATCH 16/33] usb: ati_remote2 " Mariusz Kozlowski
2006-11-08 14:35 ` [PATCH 17/33] usb: hid-core " Mariusz Kozlowski
2006-11-08 14:35 ` [PATCH 18/33] usb: usbkbd " Mariusz Kozlowski
2006-11-08 14:36 ` [PATCH 19/33] usb: auerswald free kill urb cleanup and memleak fix Mariusz Kozlowski
2006-11-08 14:36 ` [PATCH 21/33] usb: phidgetkit free urb cleanup Mariusz Kozlowski
2006-11-08 14:36 ` [PATCH 20/33] usb: legousbtower free kill " Mariusz Kozlowski
2006-11-08 14:36 ` [PATCH 22/33] usb: phidgetmotorcontrol free " Mariusz Kozlowski
2006-11-08 14:36 ` [PATCH 23/33] usb: catc " Mariusz Kozlowski
2006-11-08 14:36 ` [PATCH 24/33] usb: ftdi_sio kill " Mariusz Kozlowski
2006-11-08 14:36 ` [PATCH 25/33] usb: io_edgeport " Mariusz Kozlowski
2006-11-08 14:36 ` [PATCH 26/33] usb: keyspan free " Mariusz Kozlowski
2006-11-08 14:36 ` [PATCH 27/33] usb: kobil_sct kill " Mariusz Kozlowski
2006-11-08 14:36 ` [PATCH 28/33] usb: mct_u232 free " Mariusz Kozlowski
2006-11-08 14:36 ` [PATCH 29/33] usb: navman kill " Mariusz Kozlowski
2006-11-08 14:36 ` [PATCH 30/33] usb: usb-serial free " Mariusz Kozlowski
2006-11-08 14:36 ` [PATCH 31/33] usb: visor kill " Mariusz Kozlowski
2006-11-08 14:37 ` [PATCH 32/33] usb: usbmidi " Mariusz Kozlowski
2006-11-08 14:37 ` [PATCH 33/33] usb: usbmixer free " Mariusz Kozlowski
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=45673798.1010808@imap.cc \
--to=tilman@imap.cc \
--cc=akpm@osdl.org \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb-devel@lists.sourceforge.net \
--cc=m.kozlowski@tuxland.pl \
/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