From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EFC2F76025 for ; Sat, 25 Apr 2026 04:11:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777090296; cv=none; b=QZrm4fEdVuyZzRS4CTF7D3Ep+MQR260p+ixFJ36sNrz2z/SdGuhs7Q176k7BkZ8VVT+N+cDcfPBH/TF3Wiol3ezyaJHDhFxw1IIK/aRn3GbX8E4eiJsIFHpcSZh/i3fktiYpdUu5Ubvb26EUrIpT6SqD683snl/AFxSsTFxrNkM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777090296; c=relaxed/simple; bh=GW4l/R38TjNz3L8O5Art7qT+FhN1yKPsNIVdCQ5t2QU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=oWTms84N706O7zdeZ1vydrKyBr7meYM92aiNIOPTTH4iA6f464uSLtdSGg0uK1KmkeWJGrnY2VkoiM/jVxHq7NCLAtbnEdGkSho9/BvCWCTqOadNJjcQY1PnlZC6sPTnUXGWUaI1p2euWZJgf8dTMUx+UMtO9eAJ3lZez1hOEpI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=KtWIW1y+; arc=none smtp.client-ip=209.85.216.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KtWIW1y+" Received: by mail-pj1-f42.google.com with SMTP id 98e67ed59e1d1-362ddc1de56so1600506a91.1 for ; Fri, 24 Apr 2026 21:11:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777090294; x=1777695094; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=GW4l/R38TjNz3L8O5Art7qT+FhN1yKPsNIVdCQ5t2QU=; b=KtWIW1y+OYKmdPxv9inJgEjvnjGZ2BptEiWxHr5o6ikTWzfBb+VdD73sirXsJv2OKk WBuihTMGS+wMkjblaLEkPumeTeJlj7UQ1pMPt0tCQ9FygFm7kHs+tuLrlorxsE0AoQ+l wakaVQsw9OOYqcUL01maeRK7Hy9rjnrd13VIVxFH8usRv0IaAxJqEEtDkqWzPEe2UT1z D9WZeMH1anAdiq5nT4ZIIPEhVRBSii2uHcR6YJCz04XIBoFL7o1TRkF/ZHTrS2wrvxBD O+E3T6E3n4nWpdQMBSXFeaiSCfgpqFnzyM3nARbpbKp7PM6S5aCxqP7dKuroT7Mp/S2A dQgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777090294; x=1777695094; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GW4l/R38TjNz3L8O5Art7qT+FhN1yKPsNIVdCQ5t2QU=; b=KHGEBHeXwkGSOEUc/UtmK/+oC8tSm+X4KK9TJVZpCoueMHPChklMDDVnMqv1UPi2OX 4Wa1OMm2n4mxQqoC7cRQ1xMTwL/gYaTvHmX7ASsgb4WtzfgcKeC9kGKGwZNvC2Gyn5r/ kqT8dWnu1sF27sf+2qz7oXIsnf9j9poMCiAJftItA4gQxb3i3AMosLjW5XsfwZfR2Tr0 j453JtO/9OJLYJWxHHBHkf4kMjRJdlpyk/PMdvhPyxL0vZXSOac6gN6cf4PqB4izqskC ZmWT1jm21Rq4qvV9pVy99IfTEFqh8cU9e9T7BHvuZThBhNGkYPGZmjwIOKDyjO06GNe0 p82A== X-Forwarded-Encrypted: i=1; AFNElJ/axcgxgtL5ToXrEpPRjB8gK2aoi0MIwSGnhZCGnsNlfkkLnfFOR9U740R+sOSoCe+yLHC3QsyzOJezN2Y=@vger.kernel.org X-Gm-Message-State: AOJu0Yw5T4MrFiVEoM3WVlu2gGMwuqAzyJAQFIPR645Ib2Cb8ZHhD+OM gMsszSMyjgXtHkGSGMCAOSowr/mDTq4S/XPuWeUIRM/oGC2Jkd67AOwy X-Gm-Gg: AeBDiev8BHqBDsceIZH0StQLfSHv3njEerYuEm4Lg4vXADKFZ4B49Dx2IERS+ymmrxt dLFqwv7tGInq6Y5r+x+i0wEf9FCVL/NNrWYuzNkm8FfvGrUUdp4bNimV5j/P+VNrWIGTTivG1vc u9jKGJT60CQxVyKfZ/AwwaCJmIxiblMCjiT+FNVyYAVKvr2gHzaTYi9IKAAiB8/RUzXRIL8n3sy qpKLNucPqZUzCVQyWqL1pccJ2QNK53M4ZO+psKuDnifw+vTCwjPrqDAs+6t8xTDSa8UG5vT8J5A iuny0Wb89z9R2hAP48URrGlcHoepo5muOI5JMXMGnpleT6OTAnvydm7iVmWPN9cjtrNSyPUrJ5J UqXMP8/XRzTpJ5ElRWkIdSVljrbpF7jhXJ+6YqffJ25UAiFJUMz0LalYH2UlS1x9SqEqw4UX55g bU7+sZeDfxeWVgpJP2eCTb3ZVV8RD9ulHrCQ== X-Received: by 2002:a17:90b:3504:b0:35f:b6a1:8d27 with SMTP id 98e67ed59e1d1-3614046f76amr38398081a91.18.1777090294301; Fri, 24 Apr 2026 21:11:34 -0700 (PDT) Received: from soyboi ([158.140.167.74]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-361417748aesm24262122a91.0.2026.04.24.21.11.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Apr 2026 21:11:33 -0700 (PDT) Date: Sat, 25 Apr 2026 11:11:25 +0700 From: Robertus Diawan Chris To: Andy Shevchenko Cc: hansg@kernel.org, mchehab@kernel.org, sakari.ailus@linux.intel.com, andy@kernel.org, gregkh@linuxfoundation.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel-mentees@lists.linuxfoundation.org, skhan@linuxfoundation.org, me@brighamcampbell.com Subject: Re: [PATCH RFT v2] media: atomisp: Add error check in create_host_regular_capture_pipeline() Message-ID: References: <20260424081538.459564-1-robertusdchris@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Hello Andy, On Fri, Apr 24, 2026 at 11:48:52AM +0300, Andy Shevchenko wrote: > On Fri, Apr 24, 2026 at 03:15:38PM +0700, Robertus Diawan Chris wrote: > > When calling ia_css_pipeline_create_and_add_stage() function, there's no > > condition to check whether ia_css_pipeline_create_and_add_stage() throw > > an error or not. So add conditional check for the return value of > > ia_css_pipeline_create_and_add_stage() function. > > > This is reported by Coverity Scan with CID 1408952 as UNUSED_VALUE. > > Unneeded detail in the commit message. Use the comment block for that (as there > changelog right now and other stuff you explained). Alright, I will keep that in mind for future patches. > > Fixes: a49d25364dfb ("staging/atomisp: Add support for the Intel IPU v2") > > Signed-off-by: Robertus Diawan Chris > > --- > > v1 -> v2: Add Fixes tag (suggested by Dan Carpenter). > > > > v1: > > https://lore.kernel.org/all/20260423060246.296986-1-robertusdchris@gmail.com/ > > > > I am not sure if omitting the error check is intentional or not, but from > > what I see from another ia_css_pipeline_create_and_add_stage() usage > > in the same function, we check the return value after the call and return > > the error code if it's non-zero. > > Okay, while this observation sounds like a +1 to the suggested change, > you still need to dive into the code and try to get if > ia_css_pipeline_create_and_add_stage() failure is fatal or not for > create_host_regular_capture_pipeline(). After diving further into the code, I am not confident enough to continue this patch. I lack the context and not sure if this _seemingly_ small change can have a big side effect for the overall driver. With that in mind, I will not continue with this patch. I will try to take a look at another driver. > > I also don't have the device to test this change. > > It's a pity as this driver is quite complicated thing... Yeah... Let's just say it is _a sight to behold_ for newcomer like myself :) Thank you for taking the time to check this patch. Best regards, Robertus Diawan Chris