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 33fb6fbac3..5d4e7d07c3 100644 --- a/drm/1.0/vts/functional/drm_hal_vendor_test.cpp +++ b/drm/1.0/vts/functional/drm_hal_vendor_test.cpp @@ -129,7 +129,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);