]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/gpu/drm/tegra/drm.c
drm/tegra: Correct idr_alloc() minimum id
[karo-tx-linux.git] / drivers / gpu / drm / tegra / drm.c
index fefa715c43150fe704d6260944b133a6413b43fd..81f86a67c10d28416a3fbe3d69694b8c7dfc34ee 100644 (file)
@@ -539,7 +539,7 @@ static int tegra_client_open(struct tegra_drm_file *fpriv,
        if (err < 0)
                return err;
 
-       err = idr_alloc(&fpriv->contexts, context, 0, 0, GFP_KERNEL);
+       err = idr_alloc(&fpriv->contexts, context, 1, 0, GFP_KERNEL);
        if (err < 0) {
                client->ops->close_channel(context);
                return err;