From: Dan Carpenter Date: Thu, 25 Sep 2014 11:39:41 +0000 (-0300) Subject: [media] em28xx-input: NULL dereference on error X-Git-Tag: omap-for-v3.19/fixes-not-urgent-part1~48^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34d7c248ad28c5d462182c5063523023604efc12;p=pandora-kernel.git [media] em28xx-input: NULL dereference on error We call "kfree(ir->i2c_client);" in the error handling and that doesn't work if "ir" is NULL. Fixes: 78e719a5f30b ('[media] em28xx-input: i2c IR decoders: improve i2c_client handling') Signed-off-by: Dan Carpenter Acked-by: Frank Schäfer Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed