* + mm-hmm-test-fix-an-error-code-in-dmirror_allocate_chunk.patch added to -mm tree
@ 2020-10-11 3:29 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2020-10-11 3:29 UTC (permalink / raw)
To: dan.carpenter, dan.j.williams, jgg, jglisse, mm-commits, rcampbell, sfr
The patch titled
Subject: lib/test_hmm.c: fix an error code in dmirror_allocate_chunk()
has been added to the -mm tree. Its filename is
mm-hmm-test-fix-an-error-code-in-dmirror_allocate_chunk.patch
This patch should soon appear at
https://ozlabs.org/~akpm/mmots/broken-out/mm-hmm-test-fix-an-error-code-in-dmirror_allocate_chunk.patch
and later at
https://ozlabs.org/~akpm/mmotm/broken-out/mm-hmm-test-fix-an-error-code-in-dmirror_allocate_chunk.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Dan Carpenter <dan.carpenter@oracle.com>
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.
Link: https://lkml.kernel.org/r/20201010200812.GA1886610@mwanda
Fixes: 170e38548b81 ("mm/hmm/test: use after free in dmirror_allocate_chunk()")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Jerome Glisse <jglisse@redhat.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Ralph Campbell <rcampbell@nvidia.com>
Cc: Jason Gunthorpe <jgg@ziepe.ca>
Cc: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
lib/test_hmm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/lib/test_hmm.c~mm-hmm-test-fix-an-error-code-in-dmirror_allocate_chunk
+++ a/lib/test_hmm.c
@@ -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 dan.carpenter@oracle.com are
mm-memremap_pages-convert-to-struct-range-fix.patch
mm-hmm-test-fix-an-error-code-in-dmirror_allocate_chunk.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-10-11 3:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-11 3:29 + mm-hmm-test-fix-an-error-code-in-dmirror_allocate_chunk.patch added to -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.