]> git.karo-electronics.de Git - karo-tx-linux.git/commit
viafb: improve pitch handling
authorFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Mon, 6 Jun 2011 01:27:34 +0000 (01:27 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Nov 2011 17:43:26 +0000 (09:43 -0800)
commit9578e52e8847be8b342e0dbc61409d940e73666c
tree20fd3fc9533a2329bd30cf9a3ad4bfebc5d1238d
parent51bbfa9ef00ac1773d8bf121d2b5e1dcc85d3406
viafb: improve pitch handling

commit 936a3f770b8de7042d793272f008ef1bb08522e9 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/video/via/via_modesetting.h
drivers/video/via/viafbdev.c