Merge "drm/msm: null check before initializing a submitqueue"

This commit is contained in:
Linux Build Service Account 2017-10-05 16:10:12 -07:00 committed by Gerrit - the friendly Code Review server
commit afb24a199c

View file

@ -678,10 +678,10 @@ static int msm_open(struct drm_device *dev, struct drm_file *file)
if (IS_ERR(ctx))
return PTR_ERR(ctx);
if (ctx)
if (ctx) {
INIT_LIST_HEAD(&ctx->counters);
msm_submitqueue_init(ctx);
}
file->driver_priv = ctx;