Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 5a694134 authored by Sahitya Tummala's avatar Sahitya Tummala Committed by Gerrit - the friendly Code Review server
Browse files

mmc: cmdq_hci: Fix key index refcnt issue with metadata encryption



When metadata encryption is enabled, below errors are observed
from pfk driver.

[   44.754642] internal error, ref count should never be negative index 2

For discard commands, cq_host->ops->crypto_cfg_end() is being invoked
without its corresponding cq_host->ops->crypto_cfg() call. This is fine
until now, because ICE driver's  msm_host->ice.vops->config_end() would
do nothing if req->bio is NULL. But with metadata encryption this may
not be NULL, thus resulting into refcnt mismatch for that key.

Change-Id: I1609eb8506d0d19944c536adbd9253da2a45c47c
Signed-off-by: default avatarSahitya Tummala <stummala@codeaurora.org>
parent ee9b982a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment