Merge "drm/msm: null check before initializing a submitqueue"
This commit is contained in:
commit
afb24a199c
1 changed files with 3 additions and 3 deletions
|
@ -678,10 +678,10 @@ static int msm_open(struct drm_device *dev, struct drm_file *file)
|
||||||
if (IS_ERR(ctx))
|
if (IS_ERR(ctx))
|
||||||
return PTR_ERR(ctx);
|
return PTR_ERR(ctx);
|
||||||
|
|
||||||
if (ctx)
|
if (ctx) {
|
||||||
INIT_LIST_HEAD(&ctx->counters);
|
INIT_LIST_HEAD(&ctx->counters);
|
||||||
|
msm_submitqueue_init(ctx);
|
||||||
msm_submitqueue_init(ctx);
|
}
|
||||||
|
|
||||||
file->driver_priv = ctx;
|
file->driver_priv = ctx;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue