From: Jarod Wilson Date: Mon, 17 Jan 2011 19:02:00 +0000 (-0300) Subject: [media] staging/lirc: fix mem leaks and ptr err usage X-Git-Tag: v2.6.38-rc2~1^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88914bdf8c677ebd7e797adac05e47303fd6ac77;p=pandora-kernel.git [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 Signed-off-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed