Commit d9e3a62
mount: handle OOM on mnt_warn_timestamp_expiry
[ Upstream commit 4bcda1e ]
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: f8b92ba ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 1754bc0 commit d9e3a62
1 file changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2921 | 2921 | | |
2922 | 2922 | | |
2923 | 2923 | | |
2924 | | - | |
2925 | | - | |
| 2924 | + | |
| 2925 | + | |
| 2926 | + | |
| 2927 | + | |
| 2928 | + | |
| 2929 | + | |
| 2930 | + | |
| 2931 | + | |
| 2932 | + | |
2926 | 2933 | | |
2927 | 2934 | | |
2928 | 2935 | | |
2929 | 2936 | | |
2930 | 2937 | | |
2931 | 2938 | | |
2932 | 2939 | | |
2933 | | - | |
2934 | 2940 | | |
| 2941 | + | |
| 2942 | + | |
2935 | 2943 | | |
2936 | 2944 | | |
2937 | 2945 | | |
| |||
0 commit comments