viafb: improve pitch handling
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
parent
d933990c
Please register or sign in to comment