Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1002810pxa; Wed, 19 Aug 2020 23:08:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPCEPd+bayeNPQIedfieK2PUL3PXYQ2i6MCyjXfhy2RjQ9TyR1W5lu4hd3BIxvYtCpipgE X-Received: by 2002:a17:906:1ccd:: with SMTP id i13mr1821768ejh.424.1597903727065; Wed, 19 Aug 2020 23:08:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597903727; cv=none; d=google.com; s=arc-20160816; b=gl6iVPQN7KTtRyZeHZ0E+e3pcd1oG5FawKGFwI83i2ETOB+aTucAfML5eXic9HLN7L lSq7Fs5IHAi0soxpYZtgj3v7MKf7A+f6u1HDiW7Vo2UqkFoQf5TgS52TcAMEhmGggqVg P/z147ZgFgDyBwFYWV+p8Jy2LhlCn0J1bnVnOHKzq2gsV2A9YaIgAQFAm133iBOuJY6O jJvxfL4MSAQROtmQ/gj6Fap6J1PkWZEKDYzfiFeMLe1BAMP12RBYgwU0aNww4Ehb3FKr eg6u+FrcLZYOm9J72dUGxzU2r55TdqZVCMzlpYiFBBDS43rz6/vKCxnz7AnKGTGSCRIx 7ftA== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=M8qskVn5Swjp+eL1e43Nsf0pOF4txuFRZvPdDs+/jiA=; b=Wm26d5jidLZfK9OqHyjrxCJ+mASsvUNZA7GyrcuQw/FgV63hMAG3+PPwAdOx7bWoKh VrgToKkLfThqeASrCnASgka7NChuz9i1ynmQoPcVWNS6U8KH8nx5BizL9JFdDAZctKiX KY2I0Rk/0VFBi53e6878jSbMyBuJ06W5hmOtzvrMU1W31g6hVHlH+NmgpYVAhTUsRhnG e9kLELVXxuCc6MwpucMLUE78s/ch1cSQ13we333Mrm1nEcTVNRCeCdgEXcRPSGjqyXLS 413s12s9BbEizPd/WbHkPVxJdjNlUMvL2alHuhGQkdfczGtsPsROum8/rAYjVilrCr+O XJEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=uyz6aljE; 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=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b4si752956edr.513.2020.08.19.23.08.23; Wed, 19 Aug 2020 23:08:47 -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=@mediatek.com header.s=dk header.b=uyz6aljE; 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=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726876AbgHTGF4 (ORCPT + 99 others); Thu, 20 Aug 2020 02:05:56 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:19751 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726759AbgHTGFr (ORCPT ); Thu, 20 Aug 2020 02:05:47 -0400 X-UUID: 32decb3983594f699bc7b53c6eb7fa1a-20200820 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=M8qskVn5Swjp+eL1e43Nsf0pOF4txuFRZvPdDs+/jiA=; b=uyz6aljE/IZlTQyWbkCzsx6yfVz3js2Nhh34gxRe68gPdiJ3IyLzuJ6GdpADlN2rYtBNI526pqFEeI5LCLwbg+kT2VDvZwRnXsB4ifP7gNX0m2lSrEWWsiXmECqM8CbEs3jt+Qp9ZgXT9ZAw6GuXsrddxLd5LkT9QVnseh4iCNo=; X-UUID: 32decb3983594f699bc7b53c6eb7fa1a-20200820 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 857934898; Thu, 20 Aug 2020 14:05:41 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 20 Aug 2020 14:05:39 +0800 Received: from localhost.localdomain (10.17.3.153) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 20 Aug 2020 14:05:38 +0800 From: Yongqiang Niu To: CK Hu , Philipp Zabel , Rob Herring , Matthias Brugger CC: David Airlie , Daniel Vetter , Mark Rutland , , , , , , Yongqiang Niu Subject: [PATCH v1 08/21] drm/mediatek: check if fb is null Date: Thu, 20 Aug 2020 14:04:05 +0800 Message-ID: <1597903458-8055-9-git-send-email-yongqiang.niu@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1597903458-8055-1-git-send-email-yongqiang.niu@mediatek.com> References: <1597903458-8055-1-git-send-email-yongqiang.niu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SXQncyBwb3NzaWJsZSB0aGF0IHN0YXRlLT5iYXNlLmZiIGlzIG51bGwuIEFkZCBhIGNoZWNrIGJl Zm9yZSBhY2Nlc3MgaXRzDQpmb3JtYXQuDQoNClNpZ25lZC1vZmYtYnk6IFlvbmdxaWFu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