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

Skip to content
Commit 55e16949 authored by Mona Hossain's avatar Mona Hossain Committed by Stephen Boyd
Browse files

crypto: msm: Fix issue of crypto driver referencing pdev->id



On platform that use device tree to pass board or architecture
specific information rather than via platform device structure,
the id field of platform_device structure is no longer valid.
It was used to identify different instance of Crypto engine.
With device tree, this is set to -1.

The crypto driver modules (qcrypto and qcedev) refers to pdev->id
mostly to update statistics counters. With invalid pdev->id,
the counter does not increment, and would corrupt memory as it
update counters in _qcrypto_stat[-1] and _qcedev_stat[-1].

This patch removes all reference to pdev->id.

Change-Id: Ia8723c6eb5e91806223696efb1bf1a480ff2d831
Signed-off-by: default avatarMona Hossain <mhossain@codeaurora.org>
parent ad72a711
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