lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Thu, 2 Apr 2015 09:37:20 -0400
From:	Alex Deucher <alexdeucher@...il.com>
To:	Gerd Hoffmann <kraxel@...hat.com>
Cc:	Maling list - DRI developers <dri-devel@...ts.freedesktop.org>,
	virtio-dev@...ts.oasis-open.org, mst@...hat.com,
	open list <linux-kernel@...r.kernel.org>,
	Dave Airlie <airlied@...hat.com>
Subject: Re: [PATCH v2 2/4] drm_vblank_get: don't WARN_ON in case vblanks are
 not initialized

On Wed, Apr 1, 2015 at 9:15 AM, Gerd Hoffmann <kraxel@...hat.com> wrote:
> Signed-off-by: Gerd Hoffmann <kraxel@...hat.com>

Reviewed-by: Alex Deucher <alexander.deucher@....com>

> ---
>  drivers/gpu/drm/drm_irq.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/drm_irq.c b/drivers/gpu/drm/drm_irq.c
> index 10574a0..c631c1a 100644
> --- a/drivers/gpu/drm/drm_irq.c
> +++ b/drivers/gpu/drm/drm_irq.c
> @@ -1026,6 +1026,9 @@ int drm_vblank_get(struct drm_device *dev, int crtc)
>         unsigned long irqflags;
>         int ret = 0;
>
> +       if (!dev->num_crtcs)
> +               return -EINVAL;
> +
>         if (WARN_ON(crtc >= dev->num_crtcs))
>                 return -EINVAL;
>
> --
> 1.8.3.1
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@...ts.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists