git: a4417f586ffc - stable/13 - udf: Stop checking for failures from malloc(M_WAITOK)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 30 Sep 2024 05:08:01 UTC
The branch stable/13 has been updated by zlei:
URL: https://cgit.FreeBSD.org/src/commit/?id=a4417f586ffc620f69cd6d9914caabd4b8bc0ba6
commit a4417f586ffc620f69cd6d9914caabd4b8bc0ba6
Author: Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2024-09-03 10:25:18 +0000
Commit: Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2024-09-30 05:05:29 +0000
udf: Stop checking for failures from malloc(M_WAITOK)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D45852
(cherry picked from commit 3feb35dc465a8247d70e50792680c230954ef1c1)
(cherry picked from commit a77e68b0148d5224a64740c2cb7b25b1efc55335)
---
sys/fs/udf/udf_vnops.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/sys/fs/udf/udf_vnops.c b/sys/fs/udf/udf_vnops.c
index 4d08aa373678..d85bb9970913 100644
--- a/sys/fs/udf/udf_vnops.c
+++ b/sys/fs/udf/udf_vnops.c
@@ -804,8 +804,6 @@ udf_readdir(struct vop_readdir_args *a)
ncookies = uio->uio_resid / 8;
cookies = malloc(sizeof(u_long) * ncookies,
M_TEMP, M_WAITOK);
- if (cookies == NULL)
- return (ENOMEM);
uiodir.ncookies = ncookies;
uiodir.cookies = cookies;
uiodir.acookies = 0;