# Re: \[PATCH\] drm: virtio: fix eno.cocci warnings

- From: Gerd Hoffmann \<kraxel@redhat.com\>
- Date: 2017-03-14 13:44:55 
- List: virtualization
- Page: https://ratatoskr.run/virtualization/2017/03/15809338
- Thread: https://ratatoskr.run/virtualization/2017/03/15809338/t.md

```text
  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
```
