lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <53A050BF.3000101@oracle.com>
Date:	Tue, 17 Jun 2014 22:29:19 +0800
From:	Jeff Liu <jeff.liu@...cle.com>
To:	joro@...tes.org
CC:	iommu@...ts.linux-foundation.org,
	LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH 09/24]  drivers/iommu: check actual error on iommu_init

From: Jie Liu <jeff.liu@...cle.com>

kset_create_and_add() has been fixed to return the actual error
code ptr rather than NULL, so update iommu_init() to check the
return value via IS_ERR() accordingly.

Cc: Joerg Roedel <joro@...tes.org>
Signed-off-by: Jie Liu <jeff.liu@...cle.com>
---
 drivers/iommu/iommu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c
index e5555fc..297b5ad 100644
--- a/drivers/iommu/iommu.c
+++ b/drivers/iommu/iommu.c
@@ -925,7 +925,7 @@ static int __init iommu_init(void)
 	ida_init(&iommu_group_ida);
 	mutex_init(&iommu_group_mutex);
 
-	BUG_ON(!iommu_group_kset);
+	BUG_ON(IS_ERR(iommu_group_kset));
 
 	return 0;
 }
-- 
1.8.3.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ