diff options
| author | Olaf Hering <[email protected]> | 2024-07-30 10:58:13 +0200 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2024-08-19 13:45:02 +0200 |
| commit | 4bcda1eaf184e308f07f9c61d3a535f9ce477ce8 (patch) | |
| tree | 427937ad98f31607442c93b3c00f21627fdcfa44 /tools/perf/scripts/python | |
| parent | de7007f27d9108fb00d801a6be8aae2ce4dd6101 (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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[brauner: rewrite commit and commit message]
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions