mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-21 18:50:50 +01:00
vchiq(4): 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
f80483cdd5
commit
778ea7ed5a
@ -278,8 +278,6 @@ vchiq_prepare_bulk_data(VCHIQ_BULK_T *bulk, VCHI_MEM_HANDLE_T memhandle,
|
||||
|
||||
WARN_ON(memhandle != VCHI_MEM_HANDLE_INVALID);
|
||||
bi = malloc(sizeof(*bi), M_VCPAGELIST, M_WAITOK | M_ZERO);
|
||||
if (bi == NULL)
|
||||
return VCHIQ_ERROR;
|
||||
|
||||
ret = create_pagelist((char __user *)offset, size,
|
||||
(dir == VCHIQ_BULK_RECEIVE)
|
||||
|
Loading…
Reference in New Issue
Block a user