forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 ee930fffee469d076998274a2ca55e13dc1efb67
kernel/drivers/misc/cxl/context.c
....@@ -1,10 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright 2014 IBM Corp.
3
- *
4
- * This program is free software; you can redistribute it and/or
5
- * modify it under the terms of the GNU General Public License
6
- * as published by the Free Software Foundation; either version
7
- * 2 of the License, or (at your option) any later version.
84 */
95
106 #include <linux/module.h>
....@@ -356,7 +352,7 @@
356352 void cxl_context_mm_count_get(struct cxl_context *ctx)
357353 {
358354 if (ctx->mm)
359
- atomic_inc(&ctx->mm->mm_count);
355
+ mmgrab(ctx->mm);
360356 }
361357
362358 void cxl_context_mm_count_put(struct cxl_context *ctx)