lkml.org 
[lkml]   [2010]   [Aug]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH] max8998: fix off-by-one value range checking
    2010/8/4 Mark Brown <broonie@opensource.wolfsonmicro.com>:
    > On Wed, Aug 04, 2010 at 02:34:10PM +0800, Axel Lin wrote:
    >> In max8998_list_voltage() and max8998_set_voltage(),
    >> we use ldo as array index of ldo_voltage_map.
    >> Thus the valid range should be 0 .. ARRAY_SIZE(ldo_voltage_map)-1.
    >
    >> Signed-off-by: Axel Lin <axel.lin@gmail.com>
    >
    > Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
    >
    > Axel, please do try to bear in mind my previous comments about supplying
    > subject lines for your commits consistent with those for the relevant
    > code area.  This makes your patches easier to apply.
    >
    OK, will improve it next time.

    Regards,
    Axel
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2010-08-05 03:47    [W:3.022 / U:0.368 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site