summaryrefslogtreecommitdiff
path: root/kernel/kthread.c
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2026-02-13 18:10:09 +0100
committerMiquel Raynal <miquel.raynal@bootlin.com>2026-02-13 18:10:09 +0100
commit7e96d76c74175ef9747f6fc14ee567f89d72153c (patch)
treeca62cab4867acccdf339e2b199c247b910e24a8b /kernel/kthread.c
parent875382759298650c96192bf2c12e2d1e4575de92 (diff)
parent6c7860aa28b81b7e909b8d2072ed76fa22db6eda (diff)
Merge tag 'nand/for-7.0' into mtd/next
SPI NAND - The major feature this release is the support for octal DTR modes (8D-8D-8D). - There has been as well a series of conversion to scoped for each OF child loops. - Support for Foresee F35SQB002G chips has been added. Other changes are small fixes.
Diffstat (limited to 'kernel/kthread.c')
-rw-r--r--kernel/kthread.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/kthread.c b/kernel/kthread.c
index 99a3808d086f..39511dd2abc9 100644
--- a/kernel/kthread.c
+++ b/kernel/kthread.c
@@ -1599,6 +1599,7 @@ void kthread_use_mm(struct mm_struct *mm)
WARN_ON_ONCE(!(tsk->flags & PF_KTHREAD));
WARN_ON_ONCE(tsk->mm);
+ WARN_ON_ONCE(!mm->user_ns);
/*
* It is possible for mm to be the same as tsk->active_mm, but