diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-09-30 10:10:11 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-09-30 10:10:11 +0000 |
commit | 6b337e66d487bc3ce13d20c53fe3c30947bd3cc1 (patch) | |
tree | 409134d231903536fe63674a014e3e9ab12c5591 | |
parent | 3374792448db161153da54a7b25c9b63941afccc (diff) | |
parent | 165264ffdd06f35aa542ee7424834da57d48191d (diff) |
Snap for 7781147 from 165264ffdd06f35aa542ee7424834da57d48191d to t-keystone-qcom-release
Change-Id: I1acba22524ed985a82c0a73f4cb34a907ee35675
-rw-r--r-- | compress_plugin.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compress_plugin.c b/compress_plugin.c index eac0f38..0e536cc 100644 --- a/compress_plugin.c +++ b/compress_plugin.c @@ -86,7 +86,8 @@ static int compress_plug_set_params(struct compress_plug_data *plug_data, if (plugin->state == COMPRESS_PLUG_STATE_RUNNING) return plugin->ops->set_params(plugin, params); - else if (plugin->state != COMPRESS_PLUG_STATE_OPEN) + else if (plugin->state != COMPRESS_PLUG_STATE_OPEN && + plugin->state != COMPRESS_PLUG_STATE_SETUP) return -EBADFD; if (params->buffer.fragment_size == 0 || |