[PATCH] drm: virtio: fix eno.cocci warnings

Gerd Hoffmann kraxel at redhat.com
Tue Mar 14 13:44:55 UTC 2017


  Hi,

>  	vbuf = kmem_cache_alloc(vgdev->vbufs, GFP_KERNEL);
> -	if (IS_ERR(vbuf))
> +	if (!vbuf)
>  		return ERR_CAST(vbuf);

Well, ERR_CAST(vbuf) isn't correct either ...

correct fix has been committed to drm-misc-next today and should show up
in linux-next shortly.

cheers,
  Gerd



More information about the dri-devel mailing list