[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Ybbj470ocCf7bj68@kroah.com>
Date: Mon, 13 Dec 2021 07:10:43 +0100
From: Greg KH <gregkh@...uxfoundation.org>
To: xkernel <xkernel.wang@...mail.com>
Cc: andreas.noever@...il.com, michael.jamet@...el.com,
mika.westerberg@...ux.intel.com, YehezkelShB@...il.com,
linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] thunderbolt: check the return value of kmemdup()
On Mon, Dec 13, 2021 at 12:51:33AM +0800, xkernel wrote:
> kmemdup() return NULL when some internal memory errors happen, it is
> better to check the return value of it. Otherwise, some memory errors
> will not be catched in time and may further result in wrong memory
> access.
>
> Signed-off-by: xkernel <xkernel.wang@...mail.com>
Please use your "full" name, I doubt you sign documents as "xkernel". :)
thanks,
greg k-h
Powered by blists - more mailing lists