From: Sylwester Nawrocki Date: Fri, 11 Jan 2013 10:06:28 +0000 (-0300) Subject: [media] s5p-fimc: Fix fimc-lite entities deregistration X-Git-Tag: v3.9-rc1~93^2~57 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=248ac368ce4b3cd36515122d888403909d7a2500;p=pandora-kernel.git [media] s5p-fimc: Fix fimc-lite entities deregistration Clear the proper array when deregistering FIMC-LITE devices. Now fimc[] array is erroneously accessed instead of fimc_lite[] and fimc_md_unregister_entities() function call can result in an oops from NULL pointer dereference, since fmd->fimc[] is cleared earlier. This might happen in normal conditions when the driver's probing is deferred and then retried. Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed