viafb: improve pitch handling
authorFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Mon, 6 Jun 2011 01:27:34 +0000 (01:27 +0000)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Sun, 17 Jul 2011 00:11:15 +0000 (00:11 +0000)
This patch adds checks for minimum and maximum pitch size to prevent
invalid settings which could otherwise crash the machine. Also the
alignment is done in a slightly more readable way.

Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Cc: stable@kernel.org

No differences found