Re: [PATCH] libnvdimm: Add check for nd_dax_alloc

2022-11-22 Thread Christophe JAILLET
Le 22/11/2022 à 03:33, Jiasheng Jiang a écrit : As the nd_dax_alloc may return NULL pointer, it should be better to add check for the return value, as same as the one in nd_dax_create(). Fixes: c5ed9268643c ("libnvdimm, dax: autodetect support") Signed-off-by: Jiasheng Jiang --- drivers/nvdim

[PATCH] libnvdimm: Add check for nd_dax_alloc

2022-11-21 Thread Jiasheng Jiang
As the nd_dax_alloc may return NULL pointer, it should be better to add check for the return value, as same as the one in nd_dax_create(). Fixes: c5ed9268643c ("libnvdimm, dax: autodetect support") Signed-off-by: Jiasheng Jiang --- drivers/nvdimm/dax_devs.c | 2 ++ 1 file changed, 2 insertions(+