In the Linux kernel, the following vulnerability has been resolved:
nvdimm: ndtest: Return -ENOMEM if devmkcalloc() fails in ndtestprobe()
devmkcalloc() may fail. ndtestprobe() allocates three DMA address arrays (dcrdma, labeldma, dimmdma) and later unconditionally uses them in ndtestnvdimm_init(), which can lead to a NULL pointer dereference under low-memory conditions.
Check all three allocations and return -ENOMEM if any allocation fails, jumping to the common error path. Do not emit an extra error message since the allocator already warns on allocation failure.