From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (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 2A5E53806C5 for ; Tue, 31 Mar 2026 06:07:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774937270; cv=none; b=kyf9E8r4HOp1+/lHB9n+rpsJbZ1kpqyvC/hxrmdZ3qAx6GPuXzguSMB9nMA9aJUMuCUBbu6gH11DtmgQJ4t0Bvi0yq+Dmrmmp9VJwx1yRMwaON/kOdW1PU1B1nBCGE8AtpHg9qRIWdJdnmOBxphVvi5LGjl4ViGt70bGl5nfmes= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774937270; c=relaxed/simple; bh=Hgx5rEYeNiY7pIGRFAxlP2yioN/2yAlf4o4kAGqeuC0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jNLiifpk1Rcswe9FPlSVp8afHwXyJYuP6lAJdgqhfboCT7aHiaZ+rlVduF315GwzycA7WbEcOBkNNsm1b9nrFct/sDDVkjBuXFmrBNf6rO3T03WigK+veX6k03mtPFjo5n9MFWeVehatnnAJ1F43H1681QhtcROCCih0z0lV/MU= 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=XTpbwjrP; arc=none smtp.client-ip=209.85.128.41 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="XTpbwjrP" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-486b96760easo57389935e9.2 for ; Mon, 30 Mar 2026 23:07:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774937266; x=1775542066; 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=FfZlPXiNzbz0xvep3ZCo3J42gvY8JrXf+H7DC+g2RZo=; b=XTpbwjrP1k9CAf2h2aY3U6HcY/vyzhMUlztEV9KVPxF6B7IV9Ybi6Gi9G+bSa4YBfJ A/Y10l+R9L6FINIjUp9gKYBsQUY/QT8U8OAucuiZsY2BGyuJeIWtiN6yibnxeVHelVXh LjftdWEcYnCEWuheQ/9zcrT2OjtYFq848nA6YmRRa2BwseS4c8LHyyUhOCL3xGTDaYGA sT4ugeY2/2zLXOa8OXK0zCTFbkeV4WxcrRw4Rbz+5ko5+rUAqE1hlansBi3QDFi50WAZ 5NtPJwV9i1SwQNhc2ScvcfiRVjxUPQKkynwNfQOunW8v7VyNsRIzvd2Ue4TBq8t65urp pUhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774937266; x=1775542066; 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=FfZlPXiNzbz0xvep3ZCo3J42gvY8JrXf+H7DC+g2RZo=; b=cGaUhcsMyblHroSEmrTStxbDQiuIfFXZIw2YfUnFDL/0tkRSDSh+XZ4D/sxFbfo/4R J1JQOhyDC1aWyQjZ0x5ZTV4qAx0Ntspdm5i/o3iDa7txpBdbahPs7cWYPArI2cV/AZ0a JfSB3nRq/+AQIo8hVucJQkX1cXPO32cFTg1yqAYAp5GYt6wEGO+hMEnAsvp7pRETAsCR C8d8Vrn9V3JWg8otwJ6G8fp8P7JxpKLGXW9mJ40Ps5NsYl6fXNRwzwAkzdtRRAvJCxzY V8787A6AStQXIV71CTy5hqpU3XBOwbnHvk8h6j+H6gSCwC5qlPOaNRsEGwFxltHefpoX FlMw== X-Forwarded-Encrypted: i=1; AJvYcCW4ff/seFf14Agp7niZ0OySFF1ItJpofloQnLw65kIs7fEt6a3rfYxi8caFMuIBYw7jLvcFEGAW5DQthjM=@vger.kernel.org X-Gm-Message-State: AOJu0YzaWJziXwc8JWA9O7D4rMl03j+Mj2VuXrwmHYqRkvt4zrR3r+o/ R2LtJeIcWdG/ULwBYfkx0y6aLtP3LL+8soUKJhTHRrb0iJ45ZB2HMtAaS1Hl1XZc X-Gm-Gg: ATEYQzwWhC9ZMS8xegaXlw4x85VHf3HUwTk7/gzRCDjyX7Nb5IN9HoVm9VSUqhgBJ0H zycLzXQHpLQitS48d8kMSUPhZC9gdVC0Lr3oKeFizzL/lQdWF5MaIQFMLxGTvBlWHVIEAiOZA05 pod/YPfJWBAoWgvs8F4XEEc4v4FslP0H2J/20pY2t4krgJj5WpXpETbvnrxnWy9GUhlYrxDRkEc nGhvqYCAPRdsdYLYfq7/53ZQaPY3Zu3puIW+J0IVmOPoseDUFplLda4ptMoURu45zd52jivoAXN pmxOBFuH+pN5BklJinfhVk27buyOYSVsoIipphsKs/WwPS/ifJ/AMMM7smVVjRVNux1Xakf3MqW 4M9P/eHNrVaHBgY+u92MXRuVOLmJ72OUN0ulW5OQLhQFkUM4Z1z1i3wlJGcD5Tv44+U8NjzB9on 2QOErRikgxOiNJtcPWfFE18pW0rSsEXw== X-Received: by 2002:a05:600c:a408:b0:486:ff92:63d0 with SMTP id 5b1f17b1804b1-48727d73370mr197462825e9.8.1774937265940; Mon, 30 Mar 2026 23:07:45 -0700 (PDT) Received: from gmail.com ([2a00:f41:1882:1f28:c460:96ff:fea3:6e21]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4887e822227sm11197345e9.4.2026.03.30.23.07.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Mar 2026 23:07:45 -0700 (PDT) Date: Tue, 31 Mar 2026 08:07:43 +0200 From: "Jose A. Perez de Azpillaga" To: Dan Carpenter Cc: linux-staging@lists.linux.dev, Hans de Goede , Mauro Carvalho Chehab , Sakari Ailus , Andy Shevchenko , Greg Kroah-Hartman , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 1/2] media: atomisp: fix potential NULL pointer dereference in configure_isp_from_args() Message-ID: References: <20260328192721.255493-1-azpijr@gmail.com> <20260328192721.255493-2-azpijr@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: On Mon, Mar 30, 2026 at 12:35:30PM +0300, Dan Carpenter wrote: > On Sat, Mar 28, 2026 at 08:21:37PM +0100, Jose A. Perez de Azpillaga wrote: > > The function configure_isp_from_args() incorrectly dereferences > > args->delay_frames[0] to configure cropping without checking if the > > pointer is valid. However, as noted in a FIXME comment later in the > > same function, delay_frames can be NULL in certain pipeline > > configurations. > > The comment comes later in the function and it says "FIXME: > args->delay_frames can be NULL here". "args->delay_frames" is > different from "args->delay_frames[0]". Obviously > args->delay_frames can't actually be NULL there since we > dereference it here so the comment is wrong. > > If the correct response to the FIXME were just to add a NULL > check then the original author probably would have done that. > yes, I misunderstood the comment. my bad. I read more carefully. ... regards, jose a. p-a