commit | a09f347c6cc0b2821557d1346c4733cc78a79ffa | [log] [tgz] |
---|---|---|
author | Aaro Koskinen <aaro.koskinen@iki.fi> | Wed Sep 12 00:44:37 2012 +0300 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Sep 12 09:45:58 2012 -0700 |
tree | 3d5e09a361d5e3c4f00cee44b0a887f9dbd87821 | |
parent | f325129ae9006298cfbeffb669b30f57ba0cc3c4 [diff] |
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 <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>