Re: [PATCH -next] mm/hmm/test: fix error return code in hmm_dmirror_init()

2020-05-12 Thread Jason Gunthorpe
On Sat, May 09, 2020 at 03:02:34AM +, Wei Yongjun wrote: > Fix to return negative error code -ENOMEM from the alloc_page() error > handling case instead of 0, as done elsewhere in this function. > > Fixes: 5d5e54be8a1e ("mm/hmm/test: add selftest driver for HMM") > Reported-by: Hulk Robot >

Re: [PATCH -next] mm/hmm/test: fix error return code in hmm_dmirror_init()

2020-05-11 Thread Ralph Campbell
On 5/8/20 8:02 PM, Wei Yongjun wrote: Fix to return negative error code -ENOMEM from the alloc_page() error handling case instead of 0, as done elsewhere in this function. Fixes: 5d5e54be8a1e ("mm/hmm/test: add selftest driver for HMM") Reported-by: Hulk Robot Signed-off-by: Wei Yongjun

[PATCH -next] mm/hmm/test: fix error return code in hmm_dmirror_init()

2020-05-08 Thread Wei Yongjun
Fix to return negative error code -ENOMEM from the alloc_page() error handling case instead of 0, as done elsewhere in this function. Fixes: 5d5e54be8a1e ("mm/hmm/test: add selftest driver for HMM") Reported-by: Hulk Robot Signed-off-by: Wei Yongjun --- lib/test_hmm.c | 4 +++- 1 file changed,