mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sakari Ailus <sakari.ailus@iki.fi>
To: Andy Shevchenko <andriy.shevchenko@intel.com>
Cc: Qianfeng Rong <rongqianfeng@vivo.com>,
	Andy Shevchenko <andy@kernel.org>,
	Hans de Goede <hansg@kernel.org>,
	Mauro Carvalho Chehab <mchehab@kernel.org>,
	Sakari Ailus <sakari.ailus@linux.intel.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Colin Ian King <colin.i.king@gmail.com>,
	linux-kernel@vger.kernel.org, linux-media@vger.kernel.org,
	linux-staging@lists.linux.dev
Subject: Re: [PATCH v2] media: atomisp: use kmalloc_array() for array space allocation
Date: Sat, 18 Apr 2026 11:46:50 +0300	[thread overview]
Message-ID: <aeNE-lzVG_czEt-5@valkosipuli.retiisi.eu> (raw)
In-Reply-To: <aKbmTz3bd2dq_i3X@smile.fi.intel.com>

On Thu, Aug 21, 2025 at 12:26:39PM +0300, Andy Shevchenko wrote:
> On Thu, Aug 21, 2025 at 04:17:42PM +0800, Qianfeng Rong wrote:
> > Replace kmalloc(count * sizeof(type)) with kmalloc_array() for safer memory
> > allocation and overflow prevention. Additionally, replace sizeof(type) with
> > sizeof(*ptr) to improve code robustness.
> 
> LGTM, thanks.
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>

I'm afraid this no longer applies to my atomisp branch.

-- 
Sakari Ailus

      reply	other threads:[~2026-04-18  8:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-21  8:17 Qianfeng Rong
2025-08-21  9:26 ` Andy Shevchenko
2026-04-18  8:46   ` Sakari Ailus [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=aeNE-lzVG_czEt-5@valkosipuli.retiisi.eu \
    --to=sakari.ailus@iki.fi \
    --cc=andriy.shevchenko@intel.com \
    --cc=andy@kernel.org \
    --cc=colin.i.king@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=hansg@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=mchehab@kernel.org \
    --cc=rongqianfeng@vivo.com \
    --cc=sakari.ailus@linux.intel.com \
    /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®