[media] staging: lirc: freeing ERR_PTRs
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 4 Sep 2014 11:10:05 +0000 (08:10 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 23 Sep 2014 19:13:36 +0000 (16:13 -0300)
We call kfree(data_buf) in the error handling and that will oops if this
is an error pointer.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/staging/media/lirc/lirc_imon.c
drivers/staging/media/lirc/lirc_sasem.c