diff options
Diffstat (limited to 'drivers/char/drm/drm_context.c')
-rw-r--r-- | drivers/char/drm/drm_context.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/drm/drm_context.c b/drivers/char/drm/drm_context.c index 6380127be281..bdd168d88f49 100644 --- a/drivers/char/drm/drm_context.c +++ b/drivers/char/drm/drm_context.c | |||
@@ -232,7 +232,7 @@ int drm_getsareactx(struct inode *inode, struct file *filp, | |||
232 | map = dev->context_sareas[request.ctx_id]; | 232 | map = dev->context_sareas[request.ctx_id]; |
233 | up(&dev->struct_sem); | 233 | up(&dev->struct_sem); |
234 | 234 | ||
235 | request.handle = 0; | 235 | request.handle = NULL; |
236 | list_for_each_entry(_entry, &dev->maplist->head, head) { | 236 | list_for_each_entry(_entry, &dev->maplist->head, head) { |
237 | if (_entry->map == map) { | 237 | if (_entry->map == map) { |
238 | request.handle = | 238 | request.handle = |
@@ -240,7 +240,7 @@ int drm_getsareactx(struct inode *inode, struct file *filp, | |||
240 | break; | 240 | break; |
241 | } | 241 | } |
242 | } | 242 | } |
243 | if (request.handle == 0) | 243 | if (request.handle == NULL) |
244 | return -EINVAL; | 244 | return -EINVAL; |
245 | 245 | ||
246 | if (copy_to_user(argp, &request, sizeof(request))) | 246 | if (copy_to_user(argp, &request, sizeof(request))) |