Displaying 2 results from an estimated 2 matches for "virtio_gpu_d".
Did you mean:
virtio_gpu_
2017 Mar 14
1
[PATCH] drm: virtio: fix eno.cocci warnings
...ipts/coccinelle/null/eno.cocci
Signed-off-by: Fengguang Wu <fengguang.wu at intel.com>
---
virtgpu_vq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/gpu/drm/virtio/virtgpu_vq.c
+++ b/drivers/gpu/drm/virtio/virtgpu_vq.c
@@ -97,7 +97,7 @@ virtio_gpu_get_vbuf(struct virtio_gpu_de
struct virtio_gpu_vbuffer *vbuf;
vbuf = kmem_cache_alloc(vgdev->vbufs, GFP_KERNEL);
- if (IS_ERR(vbuf))
+ if (!vbuf)
return ERR_CAST(vbuf);
memset(vbuf, 0, VBUFFER_SIZE);
2017 Mar 14
1
[PATCH] drm: virtio: fix eno.cocci warnings
...ipts/coccinelle/null/eno.cocci
Signed-off-by: Fengguang Wu <fengguang.wu at intel.com>
---
virtgpu_vq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/gpu/drm/virtio/virtgpu_vq.c
+++ b/drivers/gpu/drm/virtio/virtgpu_vq.c
@@ -97,7 +97,7 @@ virtio_gpu_get_vbuf(struct virtio_gpu_de
struct virtio_gpu_vbuffer *vbuf;
vbuf = kmem_cache_alloc(vgdev->vbufs, GFP_KERNEL);
- if (IS_ERR(vbuf))
+ if (!vbuf)
return ERR_CAST(vbuf);
memset(vbuf, 0, VBUFFER_SIZE);