mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-26 10:53:39 +01:00
udf: Stop checking for failures from malloc(M_WAITOK)
MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852
This commit is contained in:
parent
8e6dd41858
commit
3feb35dc46
@ -800,8 +800,6 @@ udf_readdir(struct vop_readdir_args *a)
|
||||
*/
|
||||
ncookies = uio->uio_resid / 8;
|
||||
cookies = malloc(sizeof(*cookies) * ncookies, M_TEMP, M_WAITOK);
|
||||
if (cookies == NULL)
|
||||
return (ENOMEM);
|
||||
uiodir.ncookies = ncookies;
|
||||
uiodir.cookies = cookies;
|
||||
uiodir.acookies = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user