diff options
author | Nicolas Ferre <[email protected]> | 2008-07-23 21:31:34 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2008-07-24 10:47:40 -0700 |
commit | 968910bd03b226ed410d092c2da59dffe5bfe8de (patch) | |
tree | 8a49cbca6597dd67d6c21515c4c774a9d83ec522 /net/unix/sysctl_net_unix.c | |
parent | 84c41ce83e9b2987ccef352f28ba0055b26c8f8e (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.
[[email protected]: coding-style fixes]
Signed-off-by: Nicolas Ferre <[email protected]>
Cc: Haavard Skinnemoen <[email protected]>
Cc: Andrew Victor <[email protected]>
Cc: "Antonino A. Daplas" <[email protected]>
Cc: Krzysztof Helt <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions