From: Sylwester Nawrocki Date: Mon, 30 Apr 2012 15:10:58 +0000 (-0300) Subject: [media] s5p-fimc: Avoid crash with null platform_data X-Git-Tag: v3.5-rc1~104^2~73 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41df5bf088a10e54c0613ec4d7350b74d5ab8252;p=pandora-kernel.git [media] s5p-fimc: Avoid crash with null platform_data In commit "s5p-fimc: Handle sub-device interdependencies using deferred.." there was a check added for pdata->num_clients without first checking pdata against NULL. This causes a crash when platform_data is not set, which is a valid use case. Fix this regression by skipping the MIPI-CSIS subdev registration also when pdata is null. Reported-by: HeungJun Kim Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed