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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AC6D8C433FE for ; Tue, 2 Nov 2021 14:45:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 95C31610EA for ; Tue, 2 Nov 2021 14:45:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231383AbhKBOrg (ORCPT ); Tue, 2 Nov 2021 10:47:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230326AbhKBOre (ORCPT ); Tue, 2 Nov 2021 10:47:34 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBD02C061714; Tue, 2 Nov 2021 07:44:59 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id w1so23002741edd.10; Tue, 02 Nov 2021 07:44:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IGpA0l/guxcjGElfIHSIdtmCKC4GUcHmk6UoLJ28NjY=; b=PY3YWvGI8aGwzSGlAZFZinGNujL/HX9RWkWzatjVR7IklhoSKkgOJc4hDR8WpPXwza QNgjpRP2CQDZg/0/lm1e1np6HonfdL7sbczLeKIGX5sdR17yRwH9wH7xUTHx0gK2CD1i WlEaJIXrsWZFDfK3r/dgEU58AB0pa5E7r1qwu86hkWC0Yq/+f6s/Ccm4jiFIVdJGFFuB lIrxX5mi/tcDOykdQictIFk9nK6IUNrSnDUUxcujwHvWBKC5fQvxrK/69JH5Jo26c8An f8fJbmGzIvWe9cH5gMOoq0W73qGoyWI4UFeUSfQDUA25RQ52AG28Wvr+TZrcdWMjj51R YZ+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IGpA0l/guxcjGElfIHSIdtmCKC4GUcHmk6UoLJ28NjY=; b=lvwqZL6yGKHDd1mWk3RNmaKQbJF8X629QAnj1IqVYQDO+pZuwq/2ATotGfJaOCVgtd bep/eRXvejLiDU1xc/lIZ1Zvf7dJF2vWccMRTnRy1Egl49KmmU/dui6BRrufHT69t1T7 X4E/gJ1RWVcxMZ4Bs1LOfX2vfMQRz68/QVt3PncjQLcnaVQovg6MaPfvZ+aRsXy75VkF cAAwiI62HoEJRSXgxCr/nSlB8DlN/mYpNvZeK/XcdoIlr13LnwJTAbObl3jAyIoFbVgY FFyHSG++663xBetw7F7RWujIsm1pfMjWb0eRssVUhFBl+4SId0rhML9YSl+Pz135SGNs QKlQ== X-Gm-Message-State: AOAM5330QxIKpxtne/wfdLLrYAJHExrO5EzMQUdhjX7r6qPtE8Yw40BR i2fEHbHETyfnAkWwp21jo0iNVLtAFAfzSLg4SvY= X-Google-Smtp-Source: ABdhPJy/tB8lxZRFDOwRPpbKQu8fZ4y+m8XO40U23cDbGR4mnXDC7HAMwVCourQlr3P5r279E3+PkjTqokWYSyDwFC0= X-Received: by 2002:a05:6402:1801:: with SMTP id g1mr24872630edy.107.1635864298428; Tue, 02 Nov 2021 07:44:58 -0700 (PDT) MIME-Version: 1.0 References: <20211017162337.44860-1-kitakar@gmail.com> <20211017162337.44860-4-kitakar@gmail.com> <20211102130245.GE2794@kadam> In-Reply-To: <20211102130245.GE2794@kadam> From: Andy Shevchenko Date: Tue, 2 Nov 2021 16:44:09 +0200 Message-ID: Subject: Re: [BUG/RFC PATCH 3/5] [BUG][RFC] media: atomisp: pci: add NULL check for asd obtained from atomisp_video_pipe To: Dan Carpenter Cc: Tsuchiya Yuto , Hans de Goede , Patrik Gfeller , Mauro Carvalho Chehab , Sakari Ailus , Greg Kroah-Hartman , Hans Verkuil , Kaixu Xia , Laurent Pinchart , Yang Li , Tomi Valkeinen , Alex Dewar , Aline Santana Cordeiro , Arnd Bergmann , Alan , Peter Zijlstra , Ingo Molnar , Andy Shevchenko , Linux Media Mailing List , linux-staging@lists.linux.dev, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 2, 2021 at 3:10 PM Dan Carpenter wrote: > On Mon, Oct 18, 2021 at 01:23:34AM +0900, Tsuchiya Yuto wrote: > > + if(!pipe->asd) { > > Run your patches through scripts/checkpatch.pl. While it's good advice, we are dealing with quite a bad code under staging, so the requirements may be relaxed. > > + dev_err(pipe->isp->dev, "%s(): asd is NULL, device is %s\n", > > + __func__, pipe->vdev.name); > > + return; > > + } -- With Best Regards, Andy Shevchenko