From 9b97383b789c1b2a8d4bc54d142a12f9d0a12aa1 Mon Sep 17 00:00:00 2001 From: Thierry Reding Date: Fri, 5 Dec 2014 11:46:56 +0100 Subject: [PATCH] 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-format-patch failed