lkml.org 
[lkml]   [2017]   [Mar]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] drm: virtio: fix eno.cocci warnings
From
Date
  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

\
 
 \ /
  Last update: 2017-03-14 15:08    [W:2.693 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site