diff --git a/drm/1.0/vts/functional/drm_hal_vendor_test.cpp b/drm/1.0/vts/functional/drm_hal_vendor_test.cpp index e2c9cca572..67b2c7d61d 100644 --- a/drm/1.0/vts/functional/drm_hal_vendor_test.cpp +++ b/drm/1.0/vts/functional/drm_hal_vendor_test.cpp @@ -128,7 +128,7 @@ class DrmHalVendorFactoryTest : public testing::TestWithParam { // Do the same for the crypto factory cryptoFactory = VtsTestBase::getService(name); if (cryptoFactory == nullptr) { - VtsTestBase::getService(); + cryptoFactory = VtsTestBase::getService(); } ASSERT_NE(cryptoFactory, nullptr);