diff options
-rw-r--r-- | linux-core/drm_context.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-core/drm_context.c b/linux-core/drm_context.c index b8702e6d..1fcd125e 100644 --- a/linux-core/drm_context.c +++ b/linux-core/drm_context.c @@ -232,14 +232,14 @@ int drm_getsareactx(struct inode *inode, struct file *filp, map = dev->context_sareas[request.ctx_id]; up(&dev->struct_sem); - request.handle = 0; + request.handle = NULL; list_for_each_entry(_entry, &dev->maplist->head,head) { if (_entry->map == map) { request.handle = (void *)(unsigned long)_entry->user_token; break; } } - if (request.handle == 0) + if (request.handle == NULL) return -EINVAL; if (copy_to_user(argp, &request, sizeof(request))) |