is cast
> from pointer
>
> Fixes: 8b6c724cdab8 ("virtio: vdpa: vDPA driver for Marvell OCTEON DPU
> devices")
>
> Reported-by: kernel test robot
> Reported-by: Dan Carpenter
> Closes:https://urldefense.proofpoint.com/v2/url?u=https-3A__lore.kernel.org_r_20
}
208
209 if (bo->created) {
210 virtio_gpu_cmd_unref_resource(vgdev, bo);
211 virtio_gpu_notify(vgdev);
212 return;
213 }
214 virtio_gpu_cleanup_object(bo);
215 }
regards,
dan carpenter
= attach->dmabuf->resv;
^^^
The patch adds an unchecked dereference
193
194 if (attach) {
^^
The older code assumes attach can be NULL
195 dma_resv_lock(resv, NULL);
196
regards,
dan carpenter
-linux-gcc (GCC) 15.1.0
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot
| Reported-by: Dan Carpenter
| Closes: https://lore.kernel.org/r/202507160254.dajyaz9h-...@intel.com/
smatch