summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/video/tegra/dc/nvhdcp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/video/tegra/dc/nvhdcp.c b/drivers/video/tegra/dc/nvhdcp.c
index 261d1a877c90..08a17f69b426 100644
--- a/drivers/video/tegra/dc/nvhdcp.c
+++ b/drivers/video/tegra/dc/nvhdcp.c
@@ -473,11 +473,16 @@ static int verify_ksv(u64 k)
static int get_nvhdcp_state(struct tegra_nvhdcp *nvhdcp,
struct tegra_nvhdcp_packet *pkt)
{
+ int i;
+
mutex_lock(&nvhdcp->lock);
if (nvhdcp->state != STATE_LINK_VERIFY) {
memset(pkt, 0, sizeof *pkt);
pkt->packet_results = TEGRA_NVHDCP_RESULT_LINK_FAILED;
} else {
+ pkt->num_bksv_list = nvhdcp->num_bksv_list;
+ for (i = 0; i < pkt->num_bksv_list; i++)
+ pkt->bksv_list[i] = nvhdcp->bksv_list[i];
pkt->packet_results = TEGRA_NVHDCP_RESULT_SUCCESS;
}
mutex_unlock(&nvhdcp->lock);