On Mon, May 11, 2020 at 09:37:04PM +0300, Dan Carpenter wrote: > The copy_to_user() function returns the number of bytes which weren't > copied but we want to return negative error codes. Also in dmirror_write() > if the copy_from_user() fails then there is some cleanup needed before > we can return so I fixed that as well. > > Fixes: 5d5e54be8a1e3 ("mm/hmm/test: add selftest driver for HMM") > Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> > --- > lib/test_hmm.c | 41 +++++++++++++++++++++++++---------------- > 1 file changed, 25 insertions(+), 16 deletions(-) Thank you, I squashed this into the original commit. Jason