Commit c82ea72
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 032ca56 commit c82ea72
1 file changed
+11
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2796 | 2796 | | |
2797 | 2797 | | |
2798 | 2798 | | |
2799 | | - | |
2800 | | - | |
| 2799 | + | |
| 2800 | + | |
| 2801 | + | |
| 2802 | + | |
| 2803 | + | |
| 2804 | + | |
| 2805 | + | |
| 2806 | + | |
| 2807 | + | |
2801 | 2808 | | |
2802 | 2809 | | |
2803 | 2810 | | |
2804 | 2811 | | |
2805 | 2812 | | |
2806 | 2813 | | |
2807 | 2814 | | |
2808 | | - | |
2809 | 2815 | | |
| 2816 | + | |
| 2817 | + | |
2810 | 2818 | | |
2811 | 2819 | | |
2812 | 2820 | | |
| |||
0 commit comments