lkml.org 
[lkml]   [2008]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] fix comment for __printk_ratelimit
    Date
    The comment assumed ratelimit_burst to be one and used an old name for
    ratelimit_jiffies.

    I also reintended the comment.

    Signed-off-by: Uwe Kleine-König <Uwe.Kleine-Koenig@digi.com>
    ---
    kernel/printk.c | 5 ++---
    1 files changed, 2 insertions(+), 3 deletions(-)

    diff --git a/kernel/printk.c b/kernel/printk.c
    index 8fb01c3..f1c3c1c 100644
    --- a/kernel/printk.c
    +++ b/kernel/printk.c
    @@ -1323,9 +1323,8 @@ void tty_write_message(struct tty_struct *tty, char *msg)
    /*
    * printk rate limiting, lifted from the networking subsystem.
    *
    - * This enforces a rate limit: not more than one kernel message
    - * every printk_ratelimit_jiffies to make a denial-of-service
    - * attack impossible.
    + * This enforces a rate limit: not more than @ratelimit_burst kernel message
    + * every @ratelimit_jiffies to make a denial-of-service attack impossible.
    */
    int __printk_ratelimit(int ratelimit_jiffies, int ratelimit_burst)
    {
    --
    1.5.5.1
    --
    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: 2008-05-21 12:27    [W:0.022 / U:60.040 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site