From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AB056C4332F for ; Thu, 29 Dec 2022 07:15:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232887AbiL2HPL (ORCPT ); Thu, 29 Dec 2022 02:15:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231196AbiL2HPK (ORCPT ); Thu, 29 Dec 2022 02:15:10 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0132BF7F; Wed, 28 Dec 2022 23:15:09 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2F3B061722; Thu, 29 Dec 2022 07:15:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 15F94C433EF; Thu, 29 Dec 2022 07:15:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1672298108; bh=2fA6Sq9NqC2aCmtbfFOV/twRnlM34/b9KZeZf/oWcfg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JJDXu41xL7mRYdMBfobooHtmmJ2gYf8/Kru3kwzywI9wnG2UMQ1WeNbF2RCuSzQGv GAduGH14waQzESCerpa/uMKjeQPg5ttwnrGiNDEe2TIufyHKD1fZtFJpIwFmlcbW1V A/fBnFmF6gAt99C3uxLMEgT9Y7fqTpEkGscWjGXk= Date: Thu, 29 Dec 2022 08:14:59 +0100 From: Greg Kroah-Hartman To: Tanmay <007047221b@gmail.com> Cc: Laurent Pinchart , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] media: staging: media: omap4iss: Fix null dereference for iss Message-ID: References: <7f4fe87ef8a9995bc2c64bf2e5a03ef6948b8692.camel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org On Wed, Dec 28, 2022 at 11:19:54PM +0100, Tanmay wrote: > Hi Laurent, > > Thank you. I will take care of the wrapped lines. I haven't personally seen > it return Null so yes > in the best scenario it is a speculation but in the worst scenario it > shouldn't hurt. We do not add checks for when things are "impossible" to hit, otherwise the kernel would be full of unneeded and useless checks everywhere. Only test for things that can actually happen please. thanks, greg k-h