From: Chen Gang Date: Fri, 23 Nov 2012 09:46:43 +0000 (+0800) Subject: drivers/char: for hpet, add count checking, and ~0UL instead of -1 X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~85^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2cf4e52e27dc719941cd3727205ca62b742f2746;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed