Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp2704478pxu; Sun, 18 Oct 2020 12:08:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxl+2y+Q7SwONSJn9kqPgqEUbrgY3jeKqxYT4WSViQK2ayaDphljO2dX9aIai7ZiCmYK5cF X-Received: by 2002:a50:cbc7:: with SMTP id l7mr14653234edi.148.1603048095360; Sun, 18 Oct 2020 12:08:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603048095; cv=none; d=google.com; s=arc-20160816; b=SMmk/+aGSVRWA6JxosQ7keOuGz+K7czc1VFYBO3FIxZEutmI7NLwt0pYwCmPp0RLkx LOf8akMD87Faa+6ywVoeCq43AAmJtHFxzn4fo+2mB7LnEN1L+IqnqWofNmo7xJk3QQ0L Oc3Y2XR0neQL7vdz5TbiP3bEVCfFGrix+s10pG6K7W75JWb8gN4jtapRZoxRZiEPbKO0 89oZBQJN2JNbTcsMYsH+6WaYgDCEASX20mJS/8JxfNPUeeoxoJggARe51sGSFbGW/MnS 0g8Hiyo86XBKAczDR6nOl4YsRSPm55g0tCcpW2KwiXQNCNomwEu1IVtKQX3aBwp2zZi2 hd4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=K40T/k83wtyWOrI2mPQwTzmm6Q0OfkO1kKDuP9It5QU=; b=R7tI2+4KHtdjlfzNaBjqdofGU8iMoMMdLFKMgpuHt9DvqllWOMgw88dWgfnf12aZge 3Ti8zFWfVoDgkM7mYM1JScxIQVIyj09fH/MYOW2VNNPTOChZqPWZ+NY6Hk5jkoJ55RU8 fyK+NGROeJkH8OuE1I2odkKQ1pBo0JB425CBEVtdg9pDNt/Rd9W4AyYg6Rl+ffMy/n9F ZMJFO31iJ9EV06jI62hoLQ3TkcEBBbklSqL660gDlsLi3YK51z/cktTT18/gFZMI5ptD s/cWGOs4mZVZQt1/UQPZ2MdvsMyrAfbME5NMkVZnpHLfvV+ibgH4YHfbr6Ipc0qt+/Ui SCIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QxbKiA16; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l13si6239082ejk.344.2020.10.18.12.07.53; Sun, 18 Oct 2020 12:08:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QxbKiA16; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727365AbgJRScQ (ORCPT + 99 others); Sun, 18 Oct 2020 14:32:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726949AbgJRScQ (ORCPT ); Sun, 18 Oct 2020 14:32:16 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A3F8C061755; Sun, 18 Oct 2020 11:32:16 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id b26so4660716pff.3; Sun, 18 Oct 2020 11:32:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=K40T/k83wtyWOrI2mPQwTzmm6Q0OfkO1kKDuP9It5QU=; b=QxbKiA16yJPrNiOwUwwa1gFCJoPHFm7k2WYEA7SPcJaj9fW7e+AjbnQu7ZYrsDPTLk CgBPi0idOZf1OOhXdh+oe0dY5HDioNTKyo8/YTJzdpI6AelccLcGostsEer8eMTaiMXJ 0ME0DacPTxtgdeoMxAm7syKXwpINXf7ZP+RalmZsE32v7ddFJxql8ftSez0LFBP/G8Vz Jftl+b4qUGyYoTThNlxLZhuK/GdI5xIE3VDJpD/rhMmv2DQWJVmQe3mc9JR3vREWV5qC Y3IV0C02npU2nuqzn9tK04LWJT1+/mv7tMvGmYWgeWBh83ZC53wMO66ooawxmfyebJl+ ZzbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=K40T/k83wtyWOrI2mPQwTzmm6Q0OfkO1kKDuP9It5QU=; b=YsL6OJy1h+IDiWHE1iKYQ4YLHZpR2NEkaXtwsaM+s5aHgKpMpeLEnWNy4Aj4ze0MkL qYP904pOWBqvFPahslvlhtDbIMjNeC5++XmtsRuBMu9T6+r6JWi8jPbN6rEI2sbrLC/X eoww5hvMaD8yVncXF65ZGJ2mo553jprdggfvIlxiTAolp9RiJ6yuwUfr1lbxgbRfZIG3 d0XRt7O8+VcTpIIgBZgln7o+taJ74b5WHPNTeL6CfrJZ8IllRHnF7wk4BLfdRgFcFef2 M5f0XIKgSyXdNjbZVXmWuxW5DLfc72UajENdnyIBTyxfiSBcZiVSdopwJQ8Kn4uzlaGM JwxQ== X-Gm-Message-State: AOAM530ie8UlKoT24kNGudw+a5MGJgvDJOwcmi2bowXawy+Stw5Cf999 VlLxq9/2VnPlcLBx4Bmzubu8H23SmPPOJUcUhRU= X-Received: by 2002:a63:f908:: with SMTP id h8mr4294553pgi.203.1603045935923; Sun, 18 Oct 2020 11:32:15 -0700 (PDT) MIME-Version: 1.0 References: <20201018171545.3190476-1-fparent@baylibre.com> In-Reply-To: <20201018171545.3190476-1-fparent@baylibre.com> From: Andy Shevchenko Date: Sun, 18 Oct 2020 21:31:59 +0300 Message-ID: Subject: Re: [PATCH v2] iio: adc: mediatek: fix unset field To: Fabien Parent Cc: Linux Kernel Mailing List , "moderated list:ARM/Mediatek SoC support" , linux-arm Mailing List , linux-iio , Matthias Brugger , Jonathan Cameron , chun-hung.wu@mediatek.com, Alexandru Ardelean , Peter Meerwald , Lars-Peter Clausen Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 18, 2020 at 8:16 PM Fabien Parent wrote: > > dev_comp field is used in a couple of places but it is never set. This > results in kernel oops when dereferencing a NULL pointer. Set the > `dev_comp` field correctly in the probe function. > > Fixes: 6d97024dce23 ("iio: adc: mediatek: mt6577-auxadc, add mt6765 support") > > Signed-off-by: Fabien Parent Shouldn't be a blank line in the tag block. I think Jonathan can fix it, but be more careful in the future. -- With Best Regards, Andy Shevchenko