summaryrefslogtreecommitdiffstats
path: root/include/linux/tsacct_kern.h
diff options
context:
space:
mode:
authorNicolas Ferre <nicolas.ferre@atmel.com>2008-07-23 21:31:34 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-24 10:47:40 -0700
commit968910bd03b226ed410d092c2da59dffe5bfe8de (patch)
tree8a49cbca6597dd67d6c21515c4c774a9d83ec522 /include/linux/tsacct_kern.h
parent84c41ce83e9b2987ccef352f28ba0055b26c8f8e (diff)
atmel_lcdfb: avoid division by zero
Avoid division by zero in atmel_lcdfb_check_var() function. If pixclock is not specified while passing a var structure in the check_var() funtion, a division by zero occurs (when translating pixclock to KHz). This patch adds a checking of this value and try to choose a video mode in the modelist. The mode found in the probe function in added to the modelist. [akpm@linux-foundation.org: coding-style fixes] Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com> Cc: Haavard Skinnemoen <hskinnemoen@atmel.com> Cc: Andrew Victor <linux@maxim.org.za> Cc: "Antonino A. Daplas" <adaplas@pol.net> Cc: Krzysztof Helt <krzysztof.h1@poczta.fm> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/tsacct_kern.h')
0 files changed, 0 insertions, 0 deletions