summaryrefslogtreecommitdiffstats
path: root/net/handshake/handshake-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/handshake/handshake-test.c')
-rw-r--r--net/handshake/handshake-test.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/handshake/handshake-test.c b/net/handshake/handshake-test.c
index 16ed7bfd29e4..34fd1d9b2db8 100644
--- a/net/handshake/handshake-test.c
+++ b/net/handshake/handshake-test.c
@@ -471,7 +471,10 @@ static void handshake_req_destroy_test1(struct kunit *test)
handshake_req_cancel(sock->sk);
/* Act */
- fput(filp);
+ /* Ensure the close/release/put process has run to
+ * completion before checking the result.
+ */
+ __fput_sync(filp);
/* Assert */
KUNIT_EXPECT_PTR_EQ(test, handshake_req_destroy_test, req);