Seung-Woo Kim df9b6a9c33 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>
2013-07-04 10:53:37 +10:00
..
2013-05-17 14:31:05 -04:00
2013-04-26 22:30:25 +02:00
2013-05-09 09:59:16 -07:00
2013-05-23 18:24:10 -07:00
2013-05-06 14:59:13 -07:00
2013-06-22 09:44:45 -10:00
2013-05-20 13:38:14 -07:00
2013-06-13 10:13:29 -07:00
2013-06-14 19:15:36 -10:00
2013-05-15 10:58:22 -07:00
2013-06-13 22:12:14 +01:00
2013-05-07 14:04:56 -07:00
2013-05-07 14:02:00 -07:00
2013-06-27 20:40:44 +10:00
2013-06-22 09:00:28 -10:00
2013-06-05 08:54:16 -06:00
2013-06-11 02:46:21 -07:00
2013-06-27 20:40:44 +10:00
2013-05-04 12:31:18 -07:00
2013-05-04 12:31:18 -07:00