VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Dan Carpenter <dan.carpenter@oracle.com> 2020-10-15 20:11:34 -0700 committer: Linus Torvalds <torvalds@linux-foundation.org> 2020-10-16 11:11:20 -0700 commit: f3c9d0a3fe97a8b05548d27e9a8e7a5e6875004c parent: e130816164e244b692921de49771eeb28205152d
Commit Summary:
lib/test_hmm.c: fix an error code in dmirror_allocate_chunk()
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/lib/test_hmm.c b/lib/test_hmm.c
index e151a7f10519..80a78877bd93 100644
--- a/lib/test_hmm.c
+++ b/lib/test_hmm.c
@@ -461,7 +461,7 @@ static bool dmirror_allocate_chunk(struct dmirror_device *mdevice,
 
 	devmem = kzalloc(sizeof(*devmem), GFP_KERNEL);
 	if (!devmem)
-		return -ENOMEM;
+		return false;
 
 	res = request_free_mem_region(&iomem_resource, DEVMEM_CHUNK_SIZE,
 				      "hmm_dmirror");