Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp782702imm; Thu, 6 Sep 2018 10:01:22 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZeWT0igIMQRLStKKJhaA9rChNISg5cDbvXMWG4xE9xEKPJgPOHWmvLt2eFjfQyrIVLl+x3 X-Received: by 2002:a62:8704:: with SMTP id i4-v6mr3876175pfe.62.1536253282081; Thu, 06 Sep 2018 10:01:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536253281; cv=none; d=google.com; s=arc-20160816; b=PZuGl4CdA9w2valn1r9T2kMYmaL+NP3Daew6Jec4uMfh9+/xnYZFPu0dzeJfCZE03F ymt+NF20R5mg7zY3QekIL28UT2iD+PNlPRu5WIH4VaWTd0Wbo18wWwWrQqI37rOei+mu yg0o3+QgrP1m5rt+07OLSk1/wHPi1anJVT1W5rJzC7PG97sPgs+w9SmZRVFeqE1cEBT2 HLZExoFA/iEPYxBL+5hAFW+4glBFiZy0NwbCo0hAArC7J+kj0yRO7FDxr9Eo/LbPQzcb HxSYH1SHYHPp3fKeA4ZutDfQXBT4hnIpYhapQ9INQYviRt6QDadGKiz511KGeV9CFfIG ZYbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :dkim-signature; bh=JBMOczVSzYc943tii4Jr5IQWOR1jtNpvVU3BGDCncNs=; b=klbWpCrjt9HkW35FGqbtMAYFMNf7pvzzEaZSK0YvtPGM+ZDqtNO4Yf0RtweHg3n88y aMpLm0lAW7A3K/3T7WIYyY0OLOJaiB1y9lbzgC/t34yNR43HTBrJk7nki7r5VTny+889 4A+42bWIKtzTj3zsEqH0QhJJIIjtEquLUoNBTR+6T3QAlxMiPkTtV7HcttmNVee1Uf9N m1w4Cwlbs0CiQIUHpkhd4b/VtU+rPOI5dQ7lSXIJ2F5p6Dhf1jeH7QRdS3obvZkuwjRY 0AIVnWXDSVZedVXKxsTsHQSbsv1Lg50Mx6hZG8D2M5j2EMxSKGOwOisNEOukyIT0L77W UuJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=SSAlSdEh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e7-v6si5662370pge.42.2018.09.06.10.01.05; Thu, 06 Sep 2018 10:01:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=SSAlSdEh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729447AbeIFVfd (ORCPT + 99 others); Thu, 6 Sep 2018 17:35:33 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:54376 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726541AbeIFVfc (ORCPT ); Thu, 6 Sep 2018 17:35:32 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w86GwcjQ062353; Thu, 6 Sep 2018 16:59:01 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=JBMOczVSzYc943tii4Jr5IQWOR1jtNpvVU3BGDCncNs=; b=SSAlSdEhT4uQv5Ju04O0o+WA+Qh0qK1mOfg2BIKzVHC1oemiU4vfvAP5hrZ2hoyFkBZA LSMi8xjNtCyZR2NWjVvE0B2mB9V+QIvjlOBanGECy52uqEi2Gk7VWE3+QWfMaPaL+3aQ 6/FATbVWM/5OOfCNfD8fXa2D+ASuBtj6sdHqRre/S28/EuhTY9NkXiAcMoIrxoKlpR08 YbyTpJGG22NfaBthX2L/1KeRmsmgIrKZ+Eyf2El51au3Nm5yvGaxlnoTFsbkEvCAKyl4 cMl4/MD6c8rc1NoTErAM7S9TqJFKEeJBoMFBq69TRBw4briSptE7zoFO/sb5mDu2/VMZ WQ== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2130.oracle.com with ESMTP id 2m7j6twcp4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 06 Sep 2018 16:59:01 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w86Gwxod029764 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 6 Sep 2018 16:58:59 GMT Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w86GwvMh023460; Thu, 6 Sep 2018 16:58:57 GMT Received: from [10.209.243.127] (/10.209.243.127) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 06 Sep 2018 09:58:57 -0700 Subject: Re: [PATCH] memory: ti-aemif: fix a potential NULL-pointer dereference To: Kevin Hilman , Dan Carpenter , Arnd Bergmann , "arm@kernel.org" , Olof Johansson Cc: Bartosz Golaszewski , Santosh Shilimkar , Sekhar Nori , linux-kernel@vger.kernel.org, Bartosz Golaszewski , stable@vger.kernel.org References: <20180906121219.23948-1-brgl@bgdev.pl> From: Santosh Shilimkar Organization: Oracle Corporation Message-ID: Date: Thu, 6 Sep 2018 09:58:54 -0700 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180906121219.23948-1-brgl@bgdev.pl> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9008 signatures=668708 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=938 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809060165 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnd, Olof, On 9/6/2018 5:12 AM, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Platform data pointer may be NULL. We check it everywhere but in one > place. Fix it. > > Fixes: 8af70cd2ca50 ("memory: aemif: add support for board files") > Reported-by: Dan Carpenter > Signed-off-by: Bartosz Golaszewski > Cc: stable@vger.kernel.org > --- > drivers/memory/ti-aemif.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Will you be able to push this via drivers-soc fixes ? Regards, Santosh