From: Mauro Carvalho Chehab Date: Wed, 5 Mar 2014 14:21:07 +0000 (-0300) Subject: [media] em28xx: Only deallocate struct em28xx after finishing all extensions X-Git-Tag: v3.15-rc1~85^2~154 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47677e51e2a4040c204d7971a5103592600185b1;p=pandora-kernel.git [media] em28xx: Only deallocate struct em28xx after finishing all extensions We can't free struct em28xx while one of the extensions is still using it. So, add a kref() to control it, freeing it only after the extensions fini calls. Reviewed-by: Frank Schäfer Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed