Subject: Re: [PATCH] drivers/staging/irda: fix max dup length for kstrndup

From: Stephen Hemminger <[email-masked]>
Date: Tue, 12 Dec 2017 10:27:12 -0800

On Tue, 12 Dec 2017 16:54:44 +0800
Ma Shimiao <[email-masked]> 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 <[email-masked]>

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.