From: Aaro Koskinen Date: Tue, 11 Sep 2012 21:44:37 +0000 (+0300) Subject: staging: xgifb: validate the mode against video memory size X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~75^2~287 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a09f347c6cc0b2821557d1346c4733cc78a79ffa;p=pandora-kernel.git staging: xgifb: validate the mode against video memory size It's possible to select video mode that exceeds the available video memory. This is potentially dangerous, fix by adding a check. The patch fixes system hangs seen occasionally when playing random videos with mplayer. Signed-off-by: Aaro Koskinen Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed