Re: [Intel-gfx] [bug report] drm/i915/gvt/kvmgt: add vfio/mdev support to KVMGT

2017-01-26 Thread Dan Carpenter
On Thu, Jan 26, 2017 at 03:21:06PM +0800, Jike Song wrote: > Curious what static checker do you use? I actually checked it with sparse but > this was not reported. It's some unreleased Smatch stuff. It's not really useful except that it's a good stress tester for Smatch to see if it's doing cross

Re: [Intel-gfx] [bug report] drm/i915/gvt/kvmgt: add vfio/mdev support to KVMGT

2017-01-25 Thread Jike Song
On 01/26/2017 02:50 PM, Dan Carpenter wrote: > Hello Jike Song, > > The patch 659643f7d814: "drm/i915/gvt/kvmgt: add vfio/mdev support to > KVMGT" from Dec 8, 2016, leads to the following static checker > warning: > > drivers/gpu/drm/i915/gvt/kvmgt.c:969 intel_vgpu_ioctl() > warn: cal

[Intel-gfx] [bug report] drm/i915/gvt/kvmgt: add vfio/mdev support to KVMGT

2017-01-25 Thread Dan Carpenter
Hello Jike Song, The patch 659643f7d814: "drm/i915/gvt/kvmgt: add vfio/mdev support to KVMGT" from Dec 8, 2016, leads to the following static checker warning: drivers/gpu/drm/i915/gvt/kvmgt.c:969 intel_vgpu_ioctl() warn: calling kfree() when 'caps.buf' is always NULL. drivers/gpu