iommu/amd: Argument page_size could be uninitialized
authoryzhai003@ucr.edu <yzhai003@ucr.edu>
Fri, 1 Jun 2018 18:30:14 +0000 (11:30 -0700)
committerJoerg Roedel <jroedel@suse.de>
Fri, 6 Jul 2018 11:18:11 +0000 (13:18 +0200)
commit4674686d6c8974eb4eebec894c398a0f6c506af3
tree25a42871978b6d3e4494901f5de8a3ad9484e9f6
parent021c91791a5e7e85c567452f1be3e4c2c6cb6063
iommu/amd: Argument page_size could be uninitialized

Argument "page_size" passing to function "fetch_pte" could be
uninitialized if the function returns NULL

The caller "iommu_unmap_page" checks the return value but the page_size is
used outside the if block.

Signed-off-by: yzhai003@ucr.edu <yzhai003@ucr.edu>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c