lkml.org 
[lkml]   [2010]   [Oct]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] intel_pmic_gpio: fix off-by-one value range checking
    On Fri, 08 Oct 2010 17:54:31 +0800
    Axel Lin <axel.lin@gmail.com> wrote:

    > In pmic_irq_type(), we use gpio as array index for trigger,
    > thus the valid value range for gpio should be 0 .. NUM_GPIO - 1.
    >
    > Signed-off-by: Axel Lin <axel.lin@gmail.com>

    Agreed - thanks for spotting this.

    Alan


    \
     
     \ /
      Last update: 2010-10-13 12:05    [W:0.018 / U:0.292 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site