fix dma-buf/udmabuf selftest
commit6288495780c39af5bf02bb13239c6a0c7d42fa1f
authorTom Murphy <murphyt7@tcd.ie>
Tue, 27 Nov 2018 10:33:08 +0000 (27 10:33 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 19:02:19 +0000 (12 20:02 +0100)
tree7fa882e9d80435faa057dc5e4bc56bb7c69051f3
parent1e2aaaf6ced2684f8c4f9a42367e8cacd17fccec
fix dma-buf/udmabuf selftest

[ Upstream commit 6edf2e3710f4ef2555ad7a2681dbeb4a69092b2d ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/Makefile
tools/testing/selftests/drivers/dma-buf/Makefile
tools/testing/selftests/drivers/dma-buf/udmabuf.c