<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/linux.git/drivers/media, branch v3.2.40</title>
<subtitle>Linux Kernel
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v3.2.40</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v3.2.40'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/'/>
<updated>2013-03-06T03:24:24Z</updated>
<entry>
<title>rc: unlock on error in show_protocols()</title>
<updated>2013-03-06T03:24:24Z</updated>
<author>
<name>Dan Carpenter</name>
<email>dan.carpenter@oracle.com</email>
</author>
<published>2012-11-27T16:35:09Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=04ea2389e48049a79da78e517ebb411d2fad7bf2'/>
<id>urn:sha1:04ea2389e48049a79da78e517ebb411d2fad7bf2</id>
<content type='text'>
commit 30ebc5e44d057a1619ad63fe32c8c1670c37c4b8 upstream.

We recently introduced a new return -ENODEV in this function but we need
to unlock before returning.

[mchehab@redhat.com: found two patches with the same fix. Merged SOB's/acks into one patch]
Acked-by: Herton R. Krzesinski &lt;herton.krzesinski@canonical.com&gt;
Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: Douglas Bagnall &lt;douglas@paradise.net.nz&gt;

Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>Avoid sysfs oops when an rc_dev's raw device is absent</title>
<updated>2013-03-06T03:24:24Z</updated>
<author>
<name>Douglas Bagnall</name>
<email>douglas@paradise.net.nz</email>
</author>
<published>2012-07-07T02:27:57Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=86e9259d57d7eb2fae2acf5539e782403b689efb'/>
<id>urn:sha1:86e9259d57d7eb2fae2acf5539e782403b689efb</id>
<content type='text'>
commit 720bb6436ff30fccad05cf5bdf961ea5b1f5686d upstream.

For some reason, when the lirc daemon learns that a usb remote control
has been unplugged, it wants to read the sysfs attributes of the
disappearing device. This is useful for uncovering transient
inconsistencies, but less so for keeping the system running when such
inconsistencies exist.

Under some circumstances (like every time I unplug my dvb stick from
my laptop), lirc catches an rc_dev whose raw event handler has been
removed (presumably by ir_raw_event_unregister), and proceeds to
interrogate the raw protocols supported by the NULL pointer.

This patch avoids the NULL dereference, and ignores the issue of how
this state of affairs came about in the first place.

Version 2 incorporates changes recommended by Mauro Carvalho Chehab
(-ENODEV instead of -EINVAL, and a signed-off-by).

Signed-off-by: Douglas Bagnall &lt;douglas@paradise.net.nz&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>omap_vout: find_vma() needs -&gt;mmap_sem held</title>
<updated>2013-03-06T03:22:35Z</updated>
<author>
<name>Al Viro</name>
<email>viro@ZenIV.linux.org.uk</email>
</author>
<published>2012-12-16T19:04:46Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=5a82145cb978983b79993ee1d0b1982f3b80cd9b'/>
<id>urn:sha1:5a82145cb978983b79993ee1d0b1982f3b80cd9b</id>
<content type='text'>
commit 55ee64b30a38d688232e5eb2860467dddc493573 upstream.

Walking rbtree while it's modified is a Bad Idea(tm); besides,
the result of find_vma() can be freed just as it's getting returned
to caller.  Fortunately, it's easy to fix - just take -&gt;mmap_sem a bit
earlier (and don't bother with find_vma() at all if virtp &gt;= PAGE_OFFSET -
in that case we don't even look at its result).

While we are at it, what prevents VIDIOC_PREPARE_BUF calling
v4l_prepare_buf() -&gt; (e.g) vb2_ioctl_prepare_buf() -&gt; vb2_prepare_buf() -&gt;
__buf_prepare() -&gt; __qbuf_userptr() -&gt; vb2_vmalloc_get_userptr() -&gt; find_vma(),
AFAICS without having taken -&gt;mmap_sem anywhere in process?  The code flow
is bloody convoluted and depends on a bunch of things done by initialization,
so I certainly might've missed something...

Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Cc: Sakari Ailus &lt;sakari.ailus@iki.fi&gt;
Cc: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Cc: Archit Taneja &lt;archit@ti.com&gt;
Cc: Prabhakar Lad &lt;prabhakar.lad@ti.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
[bwh: Backported to 3.2: adjust filename]
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>v4l: Reset subdev v4l2_dev field to NULL if registration fails</title>
<updated>2013-03-06T03:22:35Z</updated>
<author>
<name>Laurent Pinchart</name>
<email>laurent.pinchart@ideasonboard.com</email>
</author>
<published>2012-11-25T00:35:48Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=754aed1b98d1c1ed2a8eaae2fc933bc9c6a87629'/>
<id>urn:sha1:754aed1b98d1c1ed2a8eaae2fc933bc9c6a87629</id>
<content type='text'>
commit 317efce991620adc589b3005b9baed433dcb2a56 upstream.

When subdev registration fails the subdev v4l2_dev field is left to a
non-NULL value. Later calls to v4l2_device_unregister_subdev() will
consider the subdev as registered and will module_put() the subdev
module without any matching module_get().
Fix this by setting the subdev v4l2_dev field to NULL in
v4l2_device_register_subdev() when the function fails.

Signed-off-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Acked-by: Sylwester Nawrocki &lt;s.nawrocki@samsung.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
[bwh: Backported to 3.2: adjust context, filename]
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>gspca_kinect: add Kinect for Windows USB id</title>
<updated>2013-02-20T03:15:28Z</updated>
<author>
<name>Jacob Schloss</name>
<email>jacob.schloss@unlimitedautomata.com</email>
</author>
<published>2012-12-09T23:18:25Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=fd61506bd23ffc170dac4ecf401acae8004efceb'/>
<id>urn:sha1:fd61506bd23ffc170dac4ecf401acae8004efceb</id>
<content type='text'>
commit 98fd485795db064d0885150e2c0c7f296d8fe06e upstream.

Add the USB ID for the Kinect for Windows RGB camera so it can be used
with the gspca_kinect driver.

Signed-off-by: Jacob Schloss &lt;jacob.schloss@unlimitedautomata.com&gt;
Signed-off-by: Antonio Ospite &lt;ospite@studenti.unina.it&gt;
Signed-off-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
[bwh: Backported to 3.2: adjust filename]
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>au0828: fix case where STREAMOFF being called on stopped stream causes BUG()</title>
<updated>2012-10-30T23:26:33Z</updated>
<author>
<name>Devin Heitmueller</name>
<email>dheitmueller@kernellabs.com</email>
</author>
<published>2012-08-07T01:47:03Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=ad5ca6d13f5c9c2f34f0ebc0dbea3da0e417805b'/>
<id>urn:sha1:ad5ca6d13f5c9c2f34f0ebc0dbea3da0e417805b</id>
<content type='text'>
commit a595c1ce4c9d572cf53513570b9f1a263d7867f2 upstream.

We weren't checking whether the resource was in use before calling
res_free(), so applications which called STREAMOFF on a v4l2 device that
wasn't already streaming would cause a BUG() to be hit (MythTV).

Reported-by: Larry Finger &lt;larry.finger@lwfinger.net&gt;
Reported-by: Jay Harbeston &lt;jharbestonus@gmail.com&gt;
Signed-off-by: Devin Heitmueller &lt;dheitmueller@kernellabs.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>rc: ite-cir: Initialise ite_dev::rdev earlier</title>
<updated>2012-10-17T02:48:29Z</updated>
<author>
<name>Ben Hutchings</name>
<email>ben@decadent.org.uk</email>
</author>
<published>2012-08-19T22:32:27Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=a4d44b6bfa193d1b25d8fb72f6566c4556cad0d5'/>
<id>urn:sha1:a4d44b6bfa193d1b25d8fb72f6566c4556cad0d5</id>
<content type='text'>
commit 4b961180ef275035b1538317ffd0e21e80e63e77 upstream.

ite_dev::rdev is currently initialised in ite_probe() after
rc_register_device() returns.  If a newly registered device is opened
quickly enough, we may enable interrupts and try to use ite_dev::rdev
before it has been initialised.  Move it up to the earliest point we
can, right after calling rc_allocate_device().

Reported-and-tested-by: YunQiang Su &lt;wzssyqa@gmail.com&gt;

Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>gspca_pac7302: add support for device 1ae7:2001 Speedlink Snappy Microphone SL-6825-SBK</title>
<updated>2012-10-17T02:48:24Z</updated>
<author>
<name>Frank Schäfer</name>
<email>fschaefer.oss@googlemail.com</email>
</author>
<published>2012-09-09T18:02:19Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=6a230d70aa30b1fd6780a3d885579f599843514d'/>
<id>urn:sha1:6a230d70aa30b1fd6780a3d885579f599843514d</id>
<content type='text'>
commit 97d2fbf501e3cf105ac957086c7e40e62e15cdf8 upstream.

Signed-off-by: Frank Schäfer &lt;fschaefer.oss@googlemail.com&gt;
Signed-off-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
[bwh: Backported to 3.2: adjust filename]
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>gspca_pac7302: Add usb-id for 145f:013c</title>
<updated>2012-10-17T02:48:23Z</updated>
<author>
<name>Hans de Goede</name>
<email>hdegoede@redhat.com</email>
</author>
<published>2011-12-30T22:15:53Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=fed48514a7408839119e5a37e63eb087683de6f9'/>
<id>urn:sha1:fed48514a7408839119e5a37e63eb087683de6f9</id>
<content type='text'>
commit 4d6454dbae935825e729f34dc7410bb1b22c7944 upstream.

Reported by: Grzegorz Woźniak

Signed-off-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>USB: spca506: remove __devinit* from the struct usb_device_id table</title>
<updated>2012-09-12T02:37:10Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@linuxfoundation.org</email>
</author>
<published>2012-08-18T00:48:27Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=75fc31282f88bf314ad4cee90e84f763e909da18'/>
<id>urn:sha1:75fc31282f88bf314ad4cee90e84f763e909da18</id>
<content type='text'>
commit e694d518886c7afedcdd1732477832b2e32744e4 upstream.

This structure needs to always stick around, even if CONFIG_HOTPLUG
is disabled, otherwise we can oops when trying to probe a device that
was added after the structure is thrown away.

Thanks to Fengguang Wu and Bjørn Mork for tracking this issue down.

Reported-by: Fengguang Wu &lt;fengguang.wu@intel.com&gt;
Reported-by: Bjørn Mork &lt;bjorn@mork.no&gt;
CC: Hans de Goede &lt;hdegoede@redhat.com&gt;
CC: Mauro Carvalho Chehab &lt;mchehab@infradead.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
</feed>
