From: Dan Carpenter <dan.carpenter@oracle.com>
To: Oleksandr Andrushchenko <Oleksandr_Andrushchenko@epam.com>
Cc: "Jürgen Groß" <jgross@suse.com>,
"sstabellini@kernel.org" <sstabellini@kernel.org>,
"Oleksandr Andrushchenko" <andr2000@gmail.com>,
"intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>,
"airlied@linux.ie" <airlied@linux.ie>,
"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
"boris.ostrovsky@oracle.com" <boris.ostrovsky@oracle.com>
Subject: Re: [Intel-gfx] [PATCH 2/6] drm/xen-front: Fix misused IS_ERR_OR_NULL checks
Date: Thu, 6 Aug 2020 12:20:02 +0300 [thread overview]
Message-ID: <20200806092001.GV5493@kadam> (raw)
In-Reply-To: <0ed5082f-0280-16c0-7410-f6a90262bcee@epam.com>
On Tue, Aug 04, 2020 at 06:35:20AM +0000, Oleksandr Andrushchenko wrote:
>
> On 8/4/20 9:12 AM, Jürgen Groß wrote:
> > On 31.07.20 14:51, Oleksandr Andrushchenko wrote:
> >> From: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
> >>
> >> 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?
>
> I was just not sure if these minor fixes need to go the stable, but I will add
Correct. It's still a bug because it's setting the error code
incorrectly on the impossible path. But fortunately impossible things
don't affect runtime.
regards,
dan carpenter
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
WARNING: multiple messages have this Message-ID (diff)
From: Dan Carpenter <dan.carpenter@oracle.com>
To: Oleksandr Andrushchenko <Oleksandr_Andrushchenko@epam.com>
Cc: "Jürgen Groß" <jgross@suse.com>,
"sstabellini@kernel.org" <sstabellini@kernel.org>,
"Oleksandr Andrushchenko" <andr2000@gmail.com>,
"intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>,
"airlied@linux.ie" <airlied@linux.ie>,
"daniel@ffwll.ch" <daniel@ffwll.ch>,
"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
"boris.ostrovsky@oracle.com" <boris.ostrovsky@oracle.com>
Subject: Re: [PATCH 2/6] drm/xen-front: Fix misused IS_ERR_OR_NULL checks
Date: Thu, 6 Aug 2020 12:20:02 +0300 [thread overview]
Message-ID: <20200806092001.GV5493@kadam> (raw)
In-Reply-To: <0ed5082f-0280-16c0-7410-f6a90262bcee@epam.com>
On Tue, Aug 04, 2020 at 06:35:20AM +0000, Oleksandr Andrushchenko wrote:
>
> On 8/4/20 9:12 AM, Jürgen Groß wrote:
> > On 31.07.20 14:51, Oleksandr Andrushchenko wrote:
> >> From: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
> >>
> >> 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?
>
> I was just not sure if these minor fixes need to go the stable, but I will add
Correct. It's still a bug because it's setting the error code
incorrectly on the impossible path. But fortunately impossible things
don't affect runtime.
regards,
dan carpenter
WARNING: multiple messages have this Message-ID (diff)
From: Dan Carpenter <dan.carpenter@oracle.com>
To: Oleksandr Andrushchenko <Oleksandr_Andrushchenko@epam.com>
Cc: "Jürgen Groß" <jgross@suse.com>,
"sstabellini@kernel.org" <sstabellini@kernel.org>,
"Oleksandr Andrushchenko" <andr2000@gmail.com>,
"intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>,
"airlied@linux.ie" <airlied@linux.ie>,
"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
"boris.ostrovsky@oracle.com" <boris.ostrovsky@oracle.com>
Subject: Re: [PATCH 2/6] drm/xen-front: Fix misused IS_ERR_OR_NULL checks
Date: Thu, 6 Aug 2020 12:20:02 +0300 [thread overview]
Message-ID: <20200806092001.GV5493@kadam> (raw)
In-Reply-To: <0ed5082f-0280-16c0-7410-f6a90262bcee@epam.com>
On Tue, Aug 04, 2020 at 06:35:20AM +0000, Oleksandr Andrushchenko wrote:
>
> On 8/4/20 9:12 AM, Jürgen Groß wrote:
> > On 31.07.20 14:51, Oleksandr Andrushchenko wrote:
> >> From: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
> >>
> >> 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?
>
> I was just not sure if these minor fixes need to go the stable, but I will add
Correct. It's still a bug because it's setting the error code
incorrectly on the impossible path. But fortunately impossible things
don't affect runtime.
regards,
dan carpenter
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
WARNING: multiple messages have this Message-ID (diff)
From: Dan Carpenter <dan.carpenter@oracle.com>
To: Oleksandr Andrushchenko <Oleksandr_Andrushchenko@epam.com>
Cc: "Jürgen Groß" <jgross@suse.com>,
"Oleksandr Andrushchenko" <andr2000@gmail.com>,
"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
"dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"boris.ostrovsky@oracle.com" <boris.ostrovsky@oracle.com>,
"airlied@linux.ie" <airlied@linux.ie>,
"daniel@ffwll.ch" <daniel@ffwll.ch>,
"sstabellini@kernel.org" <sstabellini@kernel.org>,
"intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH 2/6] drm/xen-front: Fix misused IS_ERR_OR_NULL checks
Date: Thu, 6 Aug 2020 12:20:02 +0300 [thread overview]
Message-ID: <20200806092001.GV5493@kadam> (raw)
In-Reply-To: <0ed5082f-0280-16c0-7410-f6a90262bcee@epam.com>
On Tue, Aug 04, 2020 at 06:35:20AM +0000, Oleksandr Andrushchenko wrote:
>
> On 8/4/20 9:12 AM, Jürgen Groß wrote:
> > On 31.07.20 14:51, Oleksandr Andrushchenko wrote:
> >> From: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
> >>
> >> 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?
>
> I was just not sure if these minor fixes need to go the stable, but I will add
Correct. It's still a bug because it's setting the error code
incorrectly on the impossible path. But fortunately impossible things
don't affect runtime.
regards,
dan carpenter
next prev parent reply other threads:[~2020-08-06 11:15 UTC|newest]
Thread overview: 73+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-31 12:51 [Intel-gfx] [PATCH 0/6] Fixes and improvements for Xen pvdrm Oleksandr Andrushchenko
2020-07-31 12:51 ` Oleksandr Andrushchenko
2020-07-31 12:51 ` Oleksandr Andrushchenko
2020-07-31 12:51 ` Oleksandr Andrushchenko
2020-07-31 12:51 ` [Intel-gfx] [PATCH 1/6] xen/gntdev: Fix dmabuf import with non-zero sgt offset Oleksandr Andrushchenko
2020-07-31 12:51 ` Oleksandr Andrushchenko
2020-07-31 12:51 ` Oleksandr Andrushchenko
2020-07-31 12:51 ` Oleksandr Andrushchenko
2020-08-04 6:11 ` [Intel-gfx] " Jürgen Groß
2020-08-04 6:11 ` Jürgen Groß
2020-08-04 6:11 ` Jürgen Groß
2020-08-04 6:11 ` Jürgen Groß
2020-08-04 6:34 ` [Intel-gfx] " Oleksandr Andrushchenko
2020-08-04 6:34 ` Oleksandr Andrushchenko
2020-08-04 6:34 ` Oleksandr Andrushchenko
2020-08-04 6:34 ` Oleksandr Andrushchenko
2020-07-31 12:51 ` [Intel-gfx] [PATCH 2/6] drm/xen-front: Fix misused IS_ERR_OR_NULL checks Oleksandr Andrushchenko
2020-07-31 12:51 ` Oleksandr Andrushchenko
2020-07-31 12:51 ` Oleksandr Andrushchenko
2020-07-31 12:51 ` Oleksandr Andrushchenko
2020-08-04 6:12 ` [Intel-gfx] " Jürgen Groß
2020-08-04 6:12 ` Jürgen Groß
2020-08-04 6:12 ` Jürgen Groß
2020-08-04 6:12 ` Jürgen Groß
2020-08-04 6:35 ` [Intel-gfx] " Oleksandr Andrushchenko
2020-08-04 6:35 ` Oleksandr Andrushchenko
2020-08-04 6:35 ` Oleksandr Andrushchenko
2020-08-04 6:35 ` Oleksandr Andrushchenko
2020-08-04 6:39 ` [Intel-gfx] " Jürgen Groß
2020-08-04 6:39 ` Jürgen Groß
2020-08-04 6:39 ` Jürgen Groß
2020-08-06 9:20 ` Dan Carpenter [this message]
2020-08-06 9:20 ` Dan Carpenter
2020-08-06 9:20 ` Dan Carpenter
2020-08-06 9:20 ` Dan Carpenter
2020-08-06 9:17 ` [Intel-gfx] " Dan Carpenter
2020-08-06 9:17 ` Dan Carpenter
2020-08-06 9:17 ` Dan Carpenter
2020-08-06 9:17 ` Dan Carpenter
2020-07-31 12:51 ` [Intel-gfx] [PATCH 3/6] drm/xen-front: Add YUYV to supported formats Oleksandr Andrushchenko
2020-07-31 12:51 ` Oleksandr Andrushchenko
2020-07-31 12:51 ` Oleksandr Andrushchenko
2020-07-31 12:51 ` Oleksandr Andrushchenko
2020-08-07 9:35 ` [Intel-gfx] " Noralf Trønnes
2020-08-07 9:35 ` Noralf Trønnes
2020-08-07 9:35 ` Noralf Trønnes
2020-07-31 12:51 ` [Intel-gfx] [PATCH 4/6] xen: Sync up with the canonical protocol definition in Xen Oleksandr Andrushchenko
2020-07-31 12:51 ` Oleksandr Andrushchenko
2020-07-31 12:51 ` Oleksandr Andrushchenko
2020-07-31 12:51 ` Oleksandr Andrushchenko
2020-08-04 6:14 ` [Intel-gfx] " Jürgen Groß
2020-08-04 6:14 ` Jürgen Groß
2020-08-04 6:14 ` Jürgen Groß
2020-08-04 6:14 ` Jürgen Groß
2020-07-31 12:51 ` [Intel-gfx] [PATCH 5/6] drm/xen-front: Pass dumb buffer data offset to the backend Oleksandr Andrushchenko
2020-07-31 12:51 ` Oleksandr Andrushchenko
2020-07-31 12:51 ` Oleksandr Andrushchenko
2020-07-31 12:51 ` Oleksandr Andrushchenko
2020-08-07 9:33 ` [Intel-gfx] " Noralf Trønnes
2020-08-07 9:33 ` Noralf Trønnes
2020-08-07 9:33 ` Noralf Trønnes
2020-07-31 12:51 ` [Intel-gfx] [PATCH 6/6] drm/xen-front: Add support for EDID based configuration Oleksandr Andrushchenko
2020-07-31 12:51 ` Oleksandr Andrushchenko
2020-07-31 12:51 ` Oleksandr Andrushchenko
2020-07-31 12:51 ` Oleksandr Andrushchenko
2020-08-05 14:35 ` [Intel-gfx] " kernel test robot
2020-08-05 14:35 ` kernel test robot
2020-08-05 14:35 ` kernel test robot
2020-08-05 14:35 ` kernel test robot
2020-08-05 14:35 ` kernel test robot
2020-07-31 13:09 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Fixes and improvements for Xen pvdrm Patchwork
2020-07-31 13:29 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2020-07-31 18:35 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200806092001.GV5493@kadam \
--to=dan.carpenter@oracle.com \
--cc=Oleksandr_Andrushchenko@epam.com \
--cc=airlied@linux.ie \
--cc=andr2000@gmail.com \
--cc=boris.ostrovsky@oracle.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jgross@suse.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.