]> git.baikalelectronics.ru Git - kernel.git/commit
lib/test_hmm.c: fix an error code in dmirror_allocate_chunk()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 16 Oct 2020 03:11:34 +0000 (20:11 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 16 Oct 2020 18:11:20 +0000 (11:11 -0700)
commit24b8ea4a41137358a9c76fb72223e00da087b791
tree7fa8eb0ba014a92baefc85a1e93bd702ce4d2e16
parent48bc9e3eb5dbb438ca935de47abe98a149d5d760
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()")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Ralph Campbell <rcampbell@nvidia.com>
Cc: Jerome Glisse <jglisse@redhat.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Jason Gunthorpe <jgg@ziepe.ca>
Cc: Dan Williams <dan.j.williams@intel.com>
Link: https://lkml.kernel.org/r/20201010200812.GA1886610@mwanda
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/test_hmm.c