From: Wei Yongjun Date: Tue, 9 Apr 2013 08:47:42 +0000 (-0300) Subject: [media] rc: ene_ir: fix potential double free in ene_probe() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~104^2^2~83 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbcd371b46a16a81a9975b57a11b61bbc2ba81e4;p=pandora-kernel.git [media] rc: ene_ir: fix potential double free in ene_probe() Since rc_unregister_device() frees its argument, the subsequently call to rc_free_device() on the same variable will cause a double free bug. Fix by set argument to NULL, thus when fall through to rc_free_device(), nothing will be done there. Signed-off-by: Wei Yongjun Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed