<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/usb/misc, branch v2.6.24</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v2.6.24</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v2.6.24'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2007-11-28T21:58:34Z</updated>
<entry>
<title>USB: FIx locks and urb-&gt;status in adutux (updated)</title>
<updated>2007-11-28T21:58:34Z</updated>
<author>
<name>Pete Zaitcev</name>
<email>zaitcev@redhat.com</email>
</author>
<published>2007-10-31T22:59:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=f08812d5eb8f8cd1a5bd5f5c26a96eb93d97ab69'/>
<id>urn:sha1:f08812d5eb8f8cd1a5bd5f5c26a96eb93d97ab69</id>
<content type='text'>
Two main issues fixed here are:
 - An improper use of in-struct lock to protect an open count
 - Use of urb status for -EINPROGRESS

Also, along the way:
 - Change usb_unlink_urb to usb_kill_urb. Apparently there's no need
   to use usb_unlink_urb whatsoever in this driver, and the old use of
   usb_kill_urb was outright racy (it unlinked and immediately freed).
 - Fix indentation in adu_write. Looks like it was damaged by a script.
 - Vitaly wants -EBUSY on multiply opens.
 - bInterval was taken from a wrong endpoint.

Signed-off-by: Pete Zaitcev &lt;zaitcev@redhat.com&gt;
Signed-off-by: Vitaliy Ivanov &lt;vitalivanov@gmail.com&gt;
Tested-by: Vitaliy Ivanov &lt;vitalivanov@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>USB: fix usbled disconnect read race #2</title>
<updated>2007-11-28T21:58:33Z</updated>
<author>
<name>Oliver Neukum</name>
<email>oliver@neukum.org</email>
</author>
<published>2007-10-28T07:21:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=ed206ec9ab398e1c3756ff0eb9507db1d009e65f'/>
<id>urn:sha1:ed206ec9ab398e1c3756ff0eb9507db1d009e65f</id>
<content type='text'>
usbled has a race where show methods for attributes in sysfs can
follow a NULL pointer during disconnect. The correct ordering fixes
it.

Signed-off-by: Oliver Neukum &lt;oneukum@suse.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;


</content>
</entry>
<entry>
<title>USB: open disconnect race in usblcd</title>
<updated>2007-10-25T19:18:46Z</updated>
<author>
<name>Oliver Neukum</name>
<email>oliver@neukum.org</email>
</author>
<published>2007-10-25T14:05:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=d5d1ceac2a47645780bd07fd7a670b14c4d995db'/>
<id>urn:sha1:d5d1ceac2a47645780bd07fd7a670b14c4d995db</id>
<content type='text'>
this driver has a possible use after free due to a race when disconnect
and open handle intfdata without a lock.

Signed-off-by: Oliver Neukum &lt;oneukum@suse.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>USB: disconnect open race in legousbtower</title>
<updated>2007-10-25T19:18:46Z</updated>
<author>
<name>Oliver Neukum</name>
<email>oliver@neukum.org</email>
</author>
<published>2007-10-25T13:48:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=78663ecc344b4694dd737deb682e81312a0684b6'/>
<id>urn:sha1:78663ecc344b4694dd737deb682e81312a0684b6</id>
<content type='text'>
again, possible use after free due to touching intfdata without lock.

Signed-off-by: Oliver Neukum &lt;oneukum@suse.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>USB: open disconnect race in iowarrior</title>
<updated>2007-10-25T19:18:46Z</updated>
<author>
<name>Oliver Neukum</name>
<email>oliver@neukum.org</email>
</author>
<published>2007-10-25T13:46:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=03f36e885fc26cb0ea299fb6df5171a51e814548'/>
<id>urn:sha1:03f36e885fc26cb0ea299fb6df5171a51e814548</id>
<content type='text'>
the driver sets intfdata to NULL without lock. Data structures can be
freed and accessed.

Signed-off-by: Oliver Neukum &lt;oneukum@suse.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>USB: missing error check in emi62</title>
<updated>2007-10-25T19:18:45Z</updated>
<author>
<name>Oliver Neukum</name>
<email>oliver@neukum.org</email>
</author>
<published>2007-10-25T13:42:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=5919a43bbc649f4770b8b5db33f43136c7ff3153'/>
<id>urn:sha1:5919a43bbc649f4770b8b5db33f43136c7ff3153</id>
<content type='text'>
the emi62 also lacks an error check.

Signed-off-by: Oliver Neukum &lt;oneukum@suse.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>USB: missing error check in emi26</title>
<updated>2007-10-25T19:18:45Z</updated>
<author>
<name>Oliver Neukum</name>
<email>oliver@neukum.org</email>
</author>
<published>2007-10-25T13:38:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=cf4cf0bb89cbff95c5be8f8d3c68e55f38f94ba7'/>
<id>urn:sha1:cf4cf0bb89cbff95c5be8f8d3c68e55f38f94ba7</id>
<content type='text'>
this drivers lacks an error check.

Signed-off-by: Oliver Neukum &lt;oneukum@suse.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>USB: fix read vs. disconnect race in cytherm driver</title>
<updated>2007-10-25T19:18:44Z</updated>
<author>
<name>Oliver Neukum</name>
<email>oliver@neukum.org</email>
</author>
<published>2007-10-23T10:26:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=d718d2b17822bb92708204cb1a9175e512520261'/>
<id>urn:sha1:d718d2b17822bb92708204cb1a9175e512520261</id>
<content type='text'>
the disconnect method of this driver set intfdata to NULL before
removing attribute files. The attributes' read methods will happily
follow the NULL pointer. Here's the correct ordering.

Signed-off-by : Oliver Neukum &lt;oneukum@suse.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;


</content>
</entry>
<entry>
<title>USB: fix locking in idmouse</title>
<updated>2007-10-25T19:18:44Z</updated>
<author>
<name>Oliver Neukum</name>
<email>oliver@neukum.org</email>
</author>
<published>2007-10-23T12:23:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=54d2bc068fd21bcb096660938bce7c7265613a24'/>
<id>urn:sha1:54d2bc068fd21bcb096660938bce7c7265613a24</id>
<content type='text'>
Pete caused me to lock at buggy drivers in this respect. The idmouse has
a race between open and disconnect. This patch

- solves the open/disconnect race
- switches locking to mutexes

Signed-off-by: Oliver Neukum &lt;oneukum@suse.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;


</content>
</entry>
<entry>
<title>USB rio500.c: fix check-after-use</title>
<updated>2007-10-25T19:18:43Z</updated>
<author>
<name>Adrian Bunk</name>
<email>bunk@kernel.org</email>
</author>
<published>2007-10-18T10:53:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=3328d9752f3796a5f5f8695d27a175c34407a5ed'/>
<id>urn:sha1:3328d9752f3796a5f5f8695d27a175c34407a5ed</id>
<content type='text'>
The Coverity checker spotted that we have already oops'ed if "dev"
was NULL in these places.

Since "dev" being NULL isn't possible at these places this patch removes
the NULL checks.

Additionally, I've fixed the formatting of the if's.

Signed-off-by: Adrian Bunk &lt;bunk@kernel.org&gt;
Acked-by: Oliver Neukum &lt;oliver@neukum.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
</feed>
