summaryrefslogtreecommitdiff
path: root/ipc
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2026-07-27 13:25:11 +0100
committerMark Brown <broonie@kernel.org>2026-07-27 13:25:11 +0100
commitfed738703be77b2ff979335d0a8dab4efb59bc64 (patch)
treec107a9507433e06ffc231a847cdf3e6ce1b09fec /ipc
parent1432683838d9122c62bf4a0fa139fcf26968911e (diff)
parent5bff6e212ff5715e86f51c6038ec5b1548f0d8a3 (diff)
downloadlinux-next-fed738703be77b2ff979335d0a8dab4efb59bc64.tar.gz
linux-next-fed738703be77b2ff979335d0a8dab4efb59bc64.zip
Merge branch 'mm-nonmm-unstable' of https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Diffstat (limited to 'ipc')
-rw-r--r--ipc/ipc_sysctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipc/ipc_sysctl.c b/ipc/ipc_sysctl.c
index 9b087ebeb643..d038d944257f 100644
--- a/ipc/ipc_sysctl.c
+++ b/ipc/ipc_sysctl.c
@@ -28,7 +28,7 @@ static int proc_ipc_dointvec_minmax_orphans(const struct ctl_table *table, int w
if (err < 0)
return err;
- if (ns->shm_rmid_forced)
+ if (write && ns->shm_rmid_forced)
shm_destroy_orphaned(ns);
return err;
}