Showing the changes to drivers/gpu (1 of 1 file). Show all
Unified · Split
| @@ -241,6 +241,10 @@ nouveau_abi16_ioctl_channel_alloc(ABI16_IOCTL_ARGS) · 240 unmodified lines | |||
| 241 | 241 | ||
| 242 | if (unlikely(!abi16)) | 242 | if (unlikely(!abi16)) |
| 243 | return -ENOMEM; | 243 | return -ENOMEM; |
| 244 | |||
| 245 | if (!drm->channel) | ||
| 246 | return nouveau_abi16_put(abi16, -ENODEV); | ||
| 247 | |||
| 244 | client = nv_client(abi16->client); | 248 | client = nv_client(abi16->client); |
| 245 | 249 | ||
| 246 | if (init->fb_ctxdma_handle == ~0 || init->tt_ctxdma_handle == ~0) | 250 | if (init->fb_ctxdma_handle == ~0 || init->tt_ctxdma_handle == ~0) |