From 009adf2d4be9479004e41fd9b49a6136498f256b Mon Sep 17 00:00:00 2001 From: Aaro Koskinen Date: Mon, 29 Aug 2011 23:14:24 +0300 Subject: [PATCH] staging: xgifb: fix LVDS LCD resolution data setup If the driver fails to get LVDS LCD data from the firmware, it falls back to using driver's hardcoded values. However, this is done too early in the probe. The selected video mode index is not yet known, and also in some cases it could be defaulting to -1 resulting in a read outside the array. Fix this by moving the array lookup after the video mode validation. Signed-off-by: Aaro Koskinen Reported-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- Reading git-format-patch failed