diff options
author | Seung-Woo Kim <sw0312.kim@samsung.com> | 2013-07-02 09:53:28 +0900 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-07-04 10:53:37 +1000 |
commit | df9b6a9c3333a99d4483e92ca6b225b335567313 (patch) | |
tree | f0478c4990796a3843cb863e66c884a5d10f2e80 /drivers/gpu/drm/drm_trace.h | |
parent | fe2ef780669d9bbd2f921b247dc79266b00b99ab (diff) |
drm: fix error routines in drm_open_helper
There are missing parts to handle error in drm_open_helper().
The priv->minor, assigned by idr_find() which can return NULL,
should be checked whether it is NULL or not before referencing it.
put_pid(), drm_gem_release(), and drm_prime_destory_file_private()
should be called when error happens after their pair functions are
called. If an error occurs after executing dev->driver->open()
which allocates driver specific per-file private data, then the
private data should be released.
Signed-off-by: YoungJun Cho <yj44.cho@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Reviewed-by: Chris Wilson <chris-wilson.co.uk>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_trace.h')
0 files changed, 0 insertions, 0 deletions