<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/media/IR/lirc_dev.c, branch linux-2.6.37.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.37.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.37.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2010-12-20T16:11:15Z</updated>
<entry>
<title>[media] lirc_dev: fixes in lirc_dev_fop_read()</title>
<updated>2010-12-20T16:11:15Z</updated>
<author>
<name>Dan Carpenter</name>
</author>
<published>2010-11-17T05:20:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=250f7a5f62a08985af5cf7728ae7ba9edbfdc0a9'/>
<id>urn:sha1:250f7a5f62a08985af5cf7728ae7ba9edbfdc0a9</id>
<content type='text'>
This makes several changes but they're in one function and sort of
related:

"buf" was leaked on error.  The leak if we try to read an invalid
length is the main concern because it could be triggered over and
over.

If the copy_to_user() failed, then the original code returned the
number of bytes remaining.  read() is supposed to be the opposite way,
where we return the number of bytes copied.  I changed it to just return
-EFAULT on errors.

Also I changed the debug output from "-EFAULT" to just "&lt;fail&gt;" because
it isn't -EFAULT necessarily.  And since we go though that path if the
length is invalid now, there was another debug print that I removed.

Signed-off-by: Dan Carpenter &lt;error27@gmail.com&gt;
Reviewed-by: Jarod Wilson &lt;jarod@redhat.com&gt;
Acked-by: Jarod Wilson &lt;jarod@redhat.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] lirc_dev: stray unlock in lirc_dev_fop_poll()</title>
<updated>2010-12-20T16:11:14Z</updated>
<author>
<name>Dan Carpenter</name>
</author>
<published>2010-11-17T05:12:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5c769a68beaee924e1dc90bf06e1b087b1d46237'/>
<id>urn:sha1:5c769a68beaee924e1dc90bf06e1b087b1d46237</id>
<content type='text'>
We shouldn't unlock here.  I think this was a cut and paste error.

Signed-off-by: Dan Carpenter &lt;error27@gmail.com&gt;
Acked-by: Jarod Wilson &lt;jarod@redhat.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6</title>
<updated>2010-10-28T16:35:11Z</updated>
<author>
<name>Linus Torvalds</name>
</author>
<published>2010-10-28T16:35:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0851668fdd97e526b2a41f794b785c204dd3d3e0'/>
<id>urn:sha1:0851668fdd97e526b2a41f794b785c204dd3d3e0</id>
<content type='text'>
* 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6: (505 commits)
  [media] af9015: Fix max I2C message size when used with tda18271
  [media] IR: initialize ir_raw_event in few more drivers
  [media] Guard a divide in v4l1 compat layer
  [media] imon: fix nomouse modprobe option
  [media] imon: remove redundant change_protocol call
  [media] imon: fix my egregious brown paper bag w/rdev/idev split
  [media] cafe_ccic: Configure ov7670 correctly
  [media] ov7670: allow configuration of image size, clock speed, and I/O method
  [media] af9015: support for DigitalNow TinyTwin v3 [1f4d:9016]
  [media] af9015: map DigitalNow TinyTwin v2 remote
  [media] DigitalNow TinyTwin remote controller
  [media] af9015: RC fixes and improvements
  videodev2.h.xml: Update to reflect the latest changes at videodev2.h
  [media] v4l: document new Bayer and monochrome pixel formats
  [media] DocBook/v4l: Add missing formats used on gspca cpia1 and sn9c2028
  [media] firedtv: add parameter to fake ca_system_ids in CA_INFO
  [media] tm6000: fix a macro coding style issue
  tm6000: Remove some ugly debug code
  [media] Nova-S-Plus audio line input
  [media] [RFC,1/1] V4L2: Use new CAP bits in existing RDS capable drivers
  ...
</content>
</entry>
<entry>
<title>Remove duplicate includes from many files</title>
<updated>2010-10-28T01:03:18Z</updated>
<author>
<name>Zimny Lech</name>
</author>
<published>2010-10-27T22:34:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=61d8e11e519ee7912ab59610fba1aaf08e3c1d84'/>
<id>urn:sha1:61d8e11e519ee7912ab59610fba1aaf08e3c1d84</id>
<content type='text'>
Signed-off-by: Zimny Lech &lt;napohybelskurwysynom2010@gmail.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>[media] lirc_dev: rework storage for cdev data</title>
<updated>2010-10-22T22:05:36Z</updated>
<author>
<name>Jarod Wilson</name>
</author>
<published>2010-10-18T21:39:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c1cbb7029e81894c056680d61c64741bd2ff246f'/>
<id>urn:sha1:c1cbb7029e81894c056680d61c64741bd2ff246f</id>
<content type='text'>
Fixes an oops when an lirc driver that doesn't provide its own fops is
unplugged while the lirc cdev is open. Tested with lirc_igorplugusb,
with a special thanks to Timo Boettcher for providing the test hardware.

Signed-off-by: Jarod Wilson &lt;jarod@redhat.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] lirc_dev: call cdev_del *after* irctl cleanup</title>
<updated>2010-10-22T22:05:36Z</updated>
<author>
<name>Jarod Wilson</name>
</author>
<published>2010-10-18T20:30:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=09c8dd8de67cf781be95d809cd45af22f40c37df'/>
<id>urn:sha1:09c8dd8de67cf781be95d809cd45af22f40c37df</id>
<content type='text'>
Signed-off-by: Jarod Wilson &lt;jarod@redhat.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] lirc_dev: more error-checking improvements</title>
<updated>2010-10-22T22:05:36Z</updated>
<author>
<name>Jarod Wilson</name>
</author>
<published>2010-10-18T15:02:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=715d29a74450696696dc064f85ba4ff0eaadb1d2'/>
<id>urn:sha1:715d29a74450696696dc064f85ba4ff0eaadb1d2</id>
<content type='text'>
Signed-off-by: Jarod Wilson &lt;jarod@redhat.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] lirc_dev: get irctl from irctls by inode again</title>
<updated>2010-10-22T22:05:36Z</updated>
<author>
<name>Jarod Wilson</name>
</author>
<published>2010-10-17T00:36:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d889a135cb832c77b7f90a89b40090e4e9ba609b'/>
<id>urn:sha1:d889a135cb832c77b7f90a89b40090e4e9ba609b</id>
<content type='text'>
Can't explain it (yet), but I've seen the 'get irctl via private_data'
setup fail for a number of people (ioctl called before its filled in?),
so lets go back to a variant of the old way, but one that still works
with unlocked_ioctl.

Signed-off-by: Jarod Wilson &lt;jarod@redhat.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] lirc_dev: fix pointer to owner</title>
<updated>2010-10-22T22:05:35Z</updated>
<author>
<name>Jarod Wilson</name>
</author>
<published>2010-10-17T00:32:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=90dc4cfa2076cdc4df4c2f5dd3cadeefd9557c2c'/>
<id>urn:sha1:90dc4cfa2076cdc4df4c2f5dd3cadeefd9557c2c</id>
<content type='text'>
If an lirc device driver doesn't specify its own fops, we set set
ir-&gt;cdev.owner to THIS_MODULE. If it does specify its own fops, we
set ir-&gt;cdev.owner to ir-&gt;d.owner. Subsequent module_{get,put} calls
should be using ir-&gt;cdev.owner, not ir-&gt;d.owner.

Signed-off-by: Jarod Wilson &lt;jarod@redhat.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] lirc_dev: sanitize function and struct names a bit</title>
<updated>2010-10-22T22:05:35Z</updated>
<author>
<name>Jarod Wilson</name>
</author>
<published>2010-10-17T00:29:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=578fcb8e5f3046493932105c404792a2fe0e066f'/>
<id>urn:sha1:578fcb8e5f3046493932105c404792a2fe0e066f</id>
<content type='text'>
Use names that clearly identify functions as lirc functions.

Signed-off-by: Jarod Wilson &lt;jarod@redhat.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
</feed>
