mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 00:33:30 +00: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;
|
ncookies = uio->uio_resid / 8;
|
||||||
cookies = malloc(sizeof(*cookies) * ncookies, M_TEMP, M_WAITOK);
|
cookies = malloc(sizeof(*cookies) * ncookies, M_TEMP, M_WAITOK);
|
||||||
if (cookies == NULL)
|
|
||||||
return (ENOMEM);
|
|
||||||
uiodir.ncookies = ncookies;
|
uiodir.ncookies = ncookies;
|
||||||
uiodir.cookies = cookies;
|
uiodir.cookies = cookies;
|
||||||
uiodir.acookies = 0;
|
uiodir.acookies = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user