|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH] Avoid dereferencing NULL cache objects.
On 22/08/2023 12:28, Owen Smith wrote: XENBUS_CACHE(Get, ...) can fail in low memory conditions. Avoid dereferencing NULL pointers in ASSERTs Fix up error path to avoid returning a NULL pointer to the cache. Signed-off-by: Owen Smith <owen.smith@xxxxxxxxx> --- src/xenvif/receiver.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) Reviewed-by: Paul Durrant <paul@xxxxxxx>We should probably accompany this with a warning in CacheFill() if it breaks out early due to a slab allocation failure.
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |