iommu/amd: Handle return of iommu_device_sysfs_add
authorBo Liu <liubo03@inspur.com>
Fri, 1 Jul 2022 06:20:08 +0000 (02:20 -0400)
committerJoerg Roedel <jroedel@suse.de>
Thu, 7 Jul 2022 07:37:06 +0000 (09:37 +0200)
commit83874d51eb4a51725c9403e11476a433add98c34
treee1c609528f3c354214f3414792e97a490c9e46fb
parent0d10fe7591178713695d7d8d77284b2fc2e6629f
iommu/amd: Handle return of iommu_device_sysfs_add

As iommu_device_sysfs_add() can fail, we should check the return value.

Signed-off-by: Bo Liu <liubo03@inspur.com>
Link: https://lore.kernel.org/r/20220701062008.6988-1-liubo03@inspur.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/init.c