video: mb862xxfb: prevent divide by zero bug
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 18 Aug 2012 15:55:41 +0000 (18:55 +0300)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Thu, 23 Aug 2012 12:34:00 +0000 (12:34 +0000)
commit25682362564fa0c950d9afe798def2ec9c3676a2
tree5881de8390fe8200664160ba7baf20d882b9538c
parent01817d194a5c078696ac4a31b5d8b99a6a9e40c7
video: mb862xxfb: prevent divide by zero bug

Do a sanity check on these before using them as divisors.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
drivers/video/mb862xx/mb862xxfbdrv.c