[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)
commit3232e04df7224f31a31cfe927096f3d03ba743ab
treedc290f5e60e868b66c12334c49c5bb8e4e04b4b9
parentfb91bde9d3664dd879655f3a1013c0b5728e7a09
[media] staging: lirc: freeing ERR_PTRs

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