From: Thierry Reding Date: Fri, 5 Dec 2014 10:46:56 +0000 (+0100) Subject: drm/mipi-dsi: Avoid potential NULL pointer dereference X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~75^2~23^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b97383b789c1b2a8d4bc54d142a12f9d0a12aa1;p=pandora-kernel.git drm/mipi-dsi: Avoid potential NULL pointer dereference The mipi_dsi_packet_create() function dereferences the msg pointer before checking that it's valid. Move the dereference down to where it is required to avoid potentially dereferencing a NULL pointer. Reported-by: Dan Carpenter Signed-off-by: Thierry Reding --- Reading git-diff-tree failed