mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-18 19:12:56 +00:00
If fstat() fails after open() succeeds, the function returns without
closing the file descriptor. Also preserve errno across close(), since
close() may overwrite it before the error is returned.
Link: https://lore.kernel.org/all/20260318155847.78065-3-objecting@objecting.org/
Fixes:
|
History
|
|
|---|---|---|
| .. | ||
| include/linux | ||
| samples | ||
| scripts | ||
| .gitignore | ||
| main.c | ||
| Makefile | ||
| test-bootconfig.sh | ||