Re: [PATCH v3 03/21] nvmet: Implement CCR nvme command

From: Mohamed Khalfella

Date: Wed Mar 25 2026 - 14:52:30 EST


On Fri 2026-02-27 17:30:29 +0100, Maurizio Lombardi wrote:
> On Sat Feb 14, 2026 at 5:25 AM CET, Mohamed Khalfella wrote:
> > Defined by TP8028 Rapid Path Failure Recovery, CCR (Cross-Controller
> > Reset) command is an nvme command issued to source controller by
> > initiator to reset impacted controller. Implement CCR command for linux
> > nvme target.
> >
> > +
> > + new_ccr = kmalloc(sizeof(*new_ccr), GFP_KERNEL);
> > + if (!new_ccr) {
> > + status = NVME_SC_INTERNAL;
> > + goto out_unlock;
> > + }
>
> Nit: kmalloc_obj is now the preferred function for this kind of memory
> allocations, see commit 69050f8d6d075dc01a and 189f164e573e18d
>
> scripts/checkpatch.pl is supposed to print a warning
> but there must be a problem with the regex and doesn't catch it
>

Got it. Switched the allocation to use kmalloc_obj().