From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Kunwu Chan <chentao@kylinos.cn>
Cc: gregkh@linuxfoundation.org, joel@jms.id.au,
andrew@codeconstruct.com.au, linux-usb@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, kunwu.chan@hotmail.com,
linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] usb: gadget: aspeed: Check return value of kasprintf in ast_vhub_alloc_epn
Date: Wed, 22 Nov 2023 12:48:12 +0200 [thread overview]
Message-ID: <ZV3cbH-i09AQelaB@smile.fi.intel.com> (raw)
In-Reply-To: <20231122014212.304254-1-chentao@kylinos.cn>
On Wed, Nov 22, 2023 at 09:42:12AM +0800, Kunwu Chan wrote:
> kasprintf() returns a pointer to dynamically allocated memory
> which can be NULL upon failure. Ensure the allocation was successful
> by checking the pointer validity.
OK.
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2023-11-22 18:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-22 1:42 [PATCH] usb: gadget: aspeed: Check return value of kasprintf in ast_vhub_alloc_epn Kunwu Chan
2023-11-22 10:48 ` Andy Shevchenko [this message]
2023-11-22 12:10 ` Greg KH
2024-01-11 9:31 ` Kunwu Chan
2024-01-11 10:03 ` Greg KH
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=ZV3cbH-i09AQelaB@smile.fi.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=andrew@codeconstruct.com.au \
--cc=chentao@kylinos.cn \
--cc=gregkh@linuxfoundation.org \
--cc=joel@jms.id.au \
--cc=kunwu.chan@hotmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-aspeed@lists.ozlabs.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.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