aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_out.c
diff options
context:
space:
mode:
authorSeung-Woo Kim <[email protected]>2013-07-02 09:53:28 +0900
committerDave Airlie <[email protected]>2013-07-04 10:53:37 +1000
commitdf9b6a9c3333a99d4483e92ca6b225b335567313 (patch)
treef0478c4990796a3843cb863e66c884a5d10f2e80 /net/lapb/lapb_out.c
parentfe2ef780669d9bbd2f921b247dc79266b00b99ab (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 <[email protected]> Signed-off-by: Seung-Woo Kim <[email protected]> Signed-off-by: Kyungmin Park <[email protected]> Reviewed-by: Chris Wilson <chris-wilson.co.uk> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions