summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorOlaf Hering <olaf@aepfle.de>2024-07-30 10:58:13 +0200
committerChristian Brauner <brauner@kernel.org>2024-08-19 13:45:02 +0200
commit4bcda1eaf184e308f07f9c61d3a535f9ce477ce8 (patch)
tree427937ad98f31607442c93b3c00f21627fdcfa44 /tools/perf/scripts/python/stackcollapse.py
parentde7007f27d9108fb00d801a6be8aae2ce4dd6101 (diff)
mount: handle OOM on mnt_warn_timestamp_expiry
If no page could be allocated, an error pointer was used as format string in pr_warn. Rearrange the code to return early in case of OOM. Also add a check for the return value of d_path. Fixes: f8b92ba67c5d ("mount: Add mount warning for impending timestamp expiry") Signed-off-by: Olaf Hering <olaf@aepfle.de> Link: https://lore.kernel.org/r/20240730085856.32385-1-olaf@aepfle.de [brauner: rewrite commit and commit message] Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions