]> git.baikalelectronics.ru Git - kernel.git/commit
viafb: fix accel_flags check_var bug
authorFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Fri, 23 Jul 2010 11:32:25 +0000 (11:32 +0000)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Fri, 23 Jul 2010 14:46:11 +0000 (14:46 +0000)
commit4825e883f252a2965da26a31563ceb9662f8af70
tree71620cfea61cefeb502149a6c61e1937b4d31dfc
parent985b8c20651b4f4e76129b5e98e6d400ac29a55a
viafb: fix accel_flags check_var bug

viafb: fix accel_flags check_var bug

In check_var we should check and modify the var given and not the
one which is currently active. So this code was obviously wrong.
Probably this was doing no harm because all acceleration functions
also check whether acceleration is possible. (otherwise I would
expect this to lead to a null pointer dereference)

Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Cc: Joseph Chan <JosephChan@via.com.tw>
drivers/video/via/viafbdev.c