mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Manish Katiyar <mkatiyar@gmail.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: trivial@kernel.org, LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] : Convert simple_strtoul to strict_strtoul in fs/inode.c
Date: Tue, 31 Mar 2009 08:12:58 +0530	[thread overview]
Message-ID: <ea11fea30903301942w2e6d8555k2dcbb36829778b4f@mail.gmail.com> (raw)
In-Reply-To: <20090330163529.2c587ef5.akpm@linux-foundation.org>

On Tue, Mar 31, 2009 at 5:05 AM, Andrew Morton
<akpm@linux-foundation.org> wrote:
> On Mon, 23 Mar 2009 09:02:04 +0530
> Manish Katiyar <mkatiyar@gmail.com> wrote:
>
>> Hi Andrew,
>>
>> Below patch converts simple_strtoul to strict_strtoul in fs/inode.c
>>
>> Signed-off-by: Manish Katiyar <mkatiyar@gmail.com>
>> ---
>>  fs/inode.c |    8 +++++++-
>>  1 files changed, 7 insertions(+), 1 deletions(-)
>>
>> diff --git a/fs/inode.c b/fs/inode.c
>> index e0dad15..ef4a9b1 100644
>> --- a/fs/inode.c
>> +++ b/fs/inode.c
>> @@ -1447,9 +1447,15 @@ EXPORT_SYMBOL(inode_double_unlock);
>>  static __initdata unsigned long ihash_entries;
>>  static int __init set_ihash_entries(char *str)
>>  {
>> +     int ret;
>> +
>>       if (!str)
>>               return 0;
>> -     ihash_entries = simple_strtoul(str, &str, 0);
>> +
>> +     ret = strict_strtoul(str, 0, &ihash_entries);
>> +     if (ret < 0 || ihash_entries == 0)
>> +             return 0;
>> +
>>       return 1;
>>  }
>>  __setup("ihash_entries=", set_ihash_entries);
>
> Again, there is no reason given for making the change.

Hi Andrew,

It showed up during cleanup of this file via checkpatch.pl.

>
> Bear in mind that this is not a backward-compatible change!  If someone
> (stupidly) has
>
>        ihash_entries=42foo
>
> in their grub.conf then your change would break their kernels.
>
> it's not a serious problem and we can probably make this change, but
> trivial@kernel.org is not a suitable list for discussing and
> promulgating the change.

I have cced lkml.

Thanks -
Manish
>
>

           reply	other threads:[~2009-03-31  2:43 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20090330163529.2c587ef5.akpm@linux-foundation.org>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ea11fea30903301942w2e6d8555k2dcbb36829778b4f@mail.gmail.com \
    --to=mkatiyar@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=trivial@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®