Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp72585pxa; Mon, 3 Aug 2020 23:15:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2lHvZsEgpKqupzL/LJYtM3yLq0hBEgfgO1nWuOIRtkAOMj0cHjyersLaiL3zb3ZLQoj/d X-Received: by 2002:a05:6402:4b:: with SMTP id f11mr5423590edu.265.1596521736553; Mon, 03 Aug 2020 23:15:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596521736; cv=none; d=google.com; s=arc-20160816; b=K/wjgKYNwYd98lGSvaacnblJrksrajR2vyPUO2ZoUmtU8PLBvXpNAbYmQ6lC4NbPaQ jVyS5Iyn9KQgdVW8gfz3EXd7cNCTrtkUPVDsXsAUO2IqYZ1ZrolyqMiIu0o0dqLd0W6b Z8TO3fF/NX/6MBHl204iEbIZuOnQP3sIVB116BW9eAGWuXVgmOEeAGLmn4EthVw9gHui Xfs4j0vUQaUtjKHoKiaM0Qwf+q7stcUH9kFa21mZ77zgTdkX15wPc20uVu50WytPkvF9 pcqoMnA8514pPN6X3dsz4tqpWdWRX6QKyscPnynlwNU1ebworxB4lOJJhedjVu4hDrKC LXnQ== 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:from:references:cc:to:subject; bh=0tnK/hXzSTUoeBPg7sjzz6qRIZio5VvlKwYRw81MEYg=; b=LkSC2JuYxLHhsum/bO9dpYMemckEfayy0crDdISWyRxwpbBGS/4Xh9kXNFuvwSdyTb MlvjwX/dhGD9ZW1sdGRWxzV/UtVwBykPYKPKBbOz05P1z1JDbfGYdxvWExzP01vzHxrO zNChqVb1tEfyUI2lceempuekv3Yxefs/xC1jY221xO1NpPd8mmZE+T7GlyjuAfhxla+g VousENUhwyhPLhekIapaF7k2nmzLeMgSuWyv3rImyuB+8m55IIMtJiUSQt4ZMqNjtX66 BeDS7/OWaVf4xE1RDxrocJvOWkuw2SMy2oe5FccxktMxqtpoO/jwGWTDvBTeKRm2Erj9 bbZA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w4si12385964edi.438.2020.08.03.23.15.14; Mon, 03 Aug 2020 23:15:36 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729392AbgHDGMs (ORCPT + 99 others); Tue, 4 Aug 2020 02:12:48 -0400 Received: from mx2.suse.de ([195.135.220.15]:33500 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727076AbgHDGMs (ORCPT ); Tue, 4 Aug 2020 02:12:48 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id E76D7AC7D; Tue, 4 Aug 2020 06:13:02 +0000 (UTC) Subject: Re: [PATCH 2/6] drm/xen-front: Fix misused IS_ERR_OR_NULL checks To: Oleksandr Andrushchenko , xen-devel@lists.xenproject.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, boris.ostrovsky@oracle.com, airlied@linux.ie, daniel@ffwll.ch Cc: sstabellini@kernel.org, dan.carpenter@oracle.com, intel-gfx@lists.freedesktop.org, Oleksandr Andrushchenko References: <20200731125109.18666-1-andr2000@gmail.com> <20200731125109.18666-3-andr2000@gmail.com> From: =?UTF-8?B?SsO8cmdlbiBHcm/Dnw==?= Message-ID: <6d719ab2-d9f6-2c3c-8979-b12a4d10b96d@suse.com> Date: Tue, 4 Aug 2020 08:12:46 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200731125109.18666-3-andr2000@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 31.07.20 14:51, Oleksandr Andrushchenko wrote: > From: Oleksandr Andrushchenko > > The patch c575b7eeb89f: "drm/xen-front: Add support for Xen PV > display frontend" from Apr 3, 2018, leads to the following static > checker warning: > > drivers/gpu/drm/xen/xen_drm_front_gem.c:140 xen_drm_front_gem_create() > warn: passing zero to 'ERR_CAST' > > drivers/gpu/drm/xen/xen_drm_front_gem.c > 133 struct drm_gem_object *xen_drm_front_gem_create(struct drm_device *dev, > 134 size_t size) > 135 { > 136 struct xen_gem_object *xen_obj; > 137 > 138 xen_obj = gem_create(dev, size); > 139 if (IS_ERR_OR_NULL(xen_obj)) > 140 return ERR_CAST(xen_obj); > > Fix this and the rest of misused places with IS_ERR_OR_NULL in the > driver. > > Fixes: c575b7eeb89f: "drm/xen-front: Add support for Xen PV display frontend" Again forgot to Cc stable? Juergen