mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
To: Stephen Hemminger <stephen@networkplumber.org>
Cc: <samuel@sortiz.org>, <netdev@vger.kernel.org>,
	<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] drivers/staging/irda: fix max dup length for kstrndup
Date: Wed, 13 Dec 2017 09:03:35 +0800	[thread overview]
Message-ID: <b95d6771-bad6-aaf9-428a-12288a23120d@cn.fujitsu.com> (raw)
In-Reply-To: <20171212102712.40e7a652@xeon-e3>

On 12/13/2017 02:27 AM, Stephen Hemminger wrote:
> On Tue, 12 Dec 2017 16:54:44 +0800
> Ma Shimiao <mashimiao.fnst@cn.fujitsu.com> wrote:
> 
>> If source string longer than max, kstrndup will alloc max+1 space.
>> So, we should make sure the result will not over limit.
>>
>> Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
> 
> Did you read the TODO file in drivers/staging/irda?
> 	
> 	The irda code will be removed soon from the kernel tree as it is old and
> 	obsolete and broken.
> 
> 	Don't worry about fixing up anything here, it's not needed.

Ah.. OK. Did not enter into the directory and notice it.
> 
> 
> 


-- 
Ma Shimiao
Development Dept.I
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST)

      reply	other threads:[~2017-12-13  1:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-12  8:54 Ma Shimiao
2017-12-12 18:27 ` Stephen Hemminger
2017-12-13  1:03   ` Ma Shimiao [this message]

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=b95d6771-bad6-aaf9-428a-12288a23120d@cn.fujitsu.com \
    --to=mashimiao.fnst@cn.fujitsu.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=samuel@sortiz.org \
    --cc=stephen@networkplumber.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®