commit | 88914bdf8c677ebd7e797adac05e47303fd6ac77 | [log] [tgz] |
---|---|---|
author | Jarod Wilson <jarod@redhat.com> | Mon Jan 17 16:02:00 2011 -0300 |
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | Wed Jan 19 12:52:22 2011 -0200 |
tree | 6ba8b683d9b19ee4d2d7aa0836b1f2cf7dc4d1f6 | |
parent | 559d162e1ebcdb61e89f154f2c2db376af072b0e [diff] |
[media] staging/lirc: fix mem leaks and ptr err usage When the lirc drivers were converted over to using memdup_user, I mistakenly also removed corresponding calls to kfree. Add those back. I also screwed up on the allocation error check in lirc_serial, using if (PTR_ERR()) instead of if (IS_ERR()), which broke transmit. Reported-by: Jiri Fojtasek <jiri.fojtasek@hlohovec.net> Signed-off-by: Jarod Wilson <jarod@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>