diff options
author | Ohad Sharabi <osharabi@habana.ai> | 2021-05-11 16:02:41 +0300 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2021-06-18 15:23:40 +0300 |
commit | 190ec49710a9fe0d5e9e36fe1a2fa864c048484f (patch) | |
tree | 80805ebc74e9fde7a409603ca52c06a60768bb0e /drivers | |
parent | 3e0ca9fab10bc06111e9c13c9c7d29ed3fcab351 (diff) | |
download | linux-stable-190ec49710a9fe0d5e9e36fe1a2fa864c048484f.tar.gz linux-stable-190ec49710a9fe0d5e9e36fe1a2fa864c048484f.tar.bz2 linux-stable-190ec49710a9fe0d5e9e36fe1a2fa864c048484f.zip |
habanalabs: check if asic secured with asic type
Fix issue in which the input to the function is_asic_secured was device
PCI_IDS number instead of the asic_type enumeration.
Signed-off-by: Ohad Sharabi <osharabi@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/misc/habanalabs/common/habanalabs_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/habanalabs/common/habanalabs_drv.c b/drivers/misc/habanalabs/common/habanalabs_drv.c index dc92401e7a3f..df1e91f810cc 100644 --- a/drivers/misc/habanalabs/common/habanalabs_drv.c +++ b/drivers/misc/habanalabs/common/habanalabs_drv.c @@ -309,7 +309,7 @@ int create_hdev(struct hl_device **dev, struct pci_dev *pdev, if (pdev) hdev->asic_prop.fw_security_disabled = - !is_asic_secured(pdev->device); + !is_asic_secured(hdev->asic_type); else hdev->asic_prop.fw_security_disabled = true; |