fix dma-buf/udmabuf selftest
authorTom Murphy <murphyt7@tcd.ie>
Tue, 27 Nov 2018 10:33:08 +0000 (10:33 +0000)
committerShuah Khan <shuah@kernel.org>
Thu, 13 Dec 2018 20:03:48 +0000 (13:03 -0700)
commit6edf2e3710f4ef2555ad7a2681dbeb4a69092b2d
tree96eac782a9db36726b4a9451c532b5546f7a71c6
parent0ca2923e2a1e1eb3376900e1e3fc74e9b6345ee9
fix dma-buf/udmabuf selftest

This patch fixes the udmabuf selftest. Currently the selftest is broken.
I fixed the selftest by setting the F_SEAL_SHRINK seal on the memfd
file descriptor which is required by udmabuf and added the test to
the selftest Makefile.

Signed-off-by: Tom Murphy <murphyt7@tcd.ie>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Shuah Khan <shuah@kernel.org>
tools/testing/selftests/Makefile
tools/testing/selftests/drivers/dma-buf/Makefile
tools/testing/selftests/drivers/dma-buf/udmabuf.c