staging: xgifb: prevent video RAM size exceeding PCI window size
authorAaro Koskinen <aaro.koskinen@iki.fi>
Tue, 11 Sep 2012 21:44:38 +0000 (00:44 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 Sep 2012 16:47:09 +0000 (09:47 -0700)
commit6b2a7e0c9bcc0a4df385d1ef8fe5109cea0260e2
tree8d657fa38cfd3a037d0793a3cf5659f0085e18e9
parenta09f347c6cc0b2821557d1346c4733cc78a79ffa
staging: xgifb: prevent video RAM size exceeding PCI window size

Add a sanity check for the video RAM size. It should fit into the
PCI window.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/xgifb/XGI_main_26.c