diff options
author | Chen Gang <gang.chen@asianux.com> | 2012-11-23 10:46:43 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-27 01:16:35 +0100 |
commit | 2cf4e52e27dc719941cd3727205ca62b742f2746 (patch) | |
tree | 54884dce9987d7582b4c3cb854606054860c4e88 /drivers/xen/features.c | |
parent | w1-gpio: Simplify & get rid of defines (diff) | |
download | linux-2cf4e52e27dc719941cd3727205ca62b742f2746.tar.xz linux-2cf4e52e27dc719941cd3727205ca62b742f2746.zip |
drivers/char: for hpet, add count checking, and ~0UL instead of -1
use ~0UL for unsigned long variable initialization, instead of -1.
add check for hdp->hd_nirqs within 32 (HPET_MAX_TIMERS).
the type of irqp->interrupt_count is u8.
the git diff not display the relative lines below.
hdp->hd_irq[hdp->hd_nirqs] = irq;
hdp->hd_nirqs++;
please check source code to get more information.
Signed-off-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/xen/features.c')
0 files changed, 0 insertions, 0 deletions