Skip to contentSkip to conversation

mm-hmm-test-fix-an-error-code-in-dmirror_allocate_chunk.patch removed from -mm tree

merged [email protected] 1 participant 1 message Oct 16, 2020

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: lib/test_hmm.c: fix an error code in dmirror_allocate_chunk()
has been removed from the -mm tree. Its filename was
mm-hmm-test-fix-an-error-code-in-dmirror_allocate_chunk.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Dan Carpenter <[email protected]>
Subject: lib/test_hmm.c: fix an error code in dmirror_allocate_chunk()

This is supposed to return false on failure, not a negative error code.

Fixes 170e38548b81 ("mm/hmm/test: use after free in dmirror_allocate_chunk()")
Cc Jerome Glisse <[email protected]>
Cc Stephen Rothwell <[email protected]>
Cc Jason Gunthorpe <[email protected]>
Cc Dan Williams <[email protected]>

---

 lib/test_hmm.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/test_hmm.c renamed from lib/test_hmm.c~mm-hmm-test-fix-an-error-code-in-dmirror_allocate_chunk +1 -1
@@ -461,7 +461,7 @@ static bool dmirror_allocate_chunk(struc
 
 	devmem = kzalloc(sizeof(*devmem), GFP_KERNEL);
 	if (!devmem)
-		return -ENOMEM;
+		return false;
 
 	res = request_free_mem_region(&iomem_resource, DEVMEM_CHUNK_SIZE,
 				      "hmm_dmirror");

_

Patches currently in -mm which might be from [email protected] are