fix missing DRM_ERR from kernel
parent
696f2bfbd1
commit
cb280ad3c0
|
@ -993,7 +993,7 @@ int savage_bci_cmdbuf(DRM_IOCTL_ARGS)
|
||||||
if (cmdbuf.size) {
|
if (cmdbuf.size) {
|
||||||
kcmd_addr = drm_alloc(cmdbuf.size * 8, DRM_MEM_DRIVER);
|
kcmd_addr = drm_alloc(cmdbuf.size * 8, DRM_MEM_DRIVER);
|
||||||
if (kcmd_addr == NULL)
|
if (kcmd_addr == NULL)
|
||||||
return ENOMEM;
|
return DRM_ERR(ENOMEM);
|
||||||
|
|
||||||
if (DRM_COPY_FROM_USER(kcmd_addr, cmdbuf.cmd_addr,
|
if (DRM_COPY_FROM_USER(kcmd_addr, cmdbuf.cmd_addr,
|
||||||
cmdbuf.size * 8))
|
cmdbuf.size * 8))
|
||||||
|
|
Loading…
Reference in New Issue