[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <b95d6771-bad6-aaf9-428a-12288a23120d@cn.fujitsu.com>
Date: Wed, 13 Dec 2017 09:03:35 +0800
From: Ma Shimiao <mashimiao.fnst@...fujitsu.com>
To: Stephen Hemminger <stephen@...workplumber.org>
CC: <samuel@...tiz.org>, <netdev@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] drivers/staging/irda: fix max dup length for kstrndup
On 12/13/2017 02:27 AM, Stephen Hemminger wrote:
> On Tue, 12 Dec 2017 16:54:44 +0800
> Ma Shimiao <mashimiao.fnst@...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@...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)
Powered by blists - more mailing lists