From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joerg Roedel Subject: Re: [PATCH 09/24] drivers/iommu: check actual error on iommu_init Date: Tue, 17 Jun 2014 17:21:54 +0200 Message-ID: <20140617152154.GE31771@8bytes.org> References: <53A050BF.3000101@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <53A050BF.3000101-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Jeff Liu Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, LKML List-Id: iommu@lists.linux-foundation.org On Tue, Jun 17, 2014 at 10:29:19PM +0800, Jeff Liu wrote: > From: Jie Liu > > 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 > Signed-off-by: Jie Liu Acked-by: Joerg Roedel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933292AbaFQPWA (ORCPT ); Tue, 17 Jun 2014 11:22:00 -0400 Received: from 8bytes.org ([85.214.48.195]:42190 "EHLO mail.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933191AbaFQPV5 (ORCPT ); Tue, 17 Jun 2014 11:21:57 -0400 Date: Tue, 17 Jun 2014 17:21:54 +0200 From: Joerg Roedel To: Jeff Liu Cc: iommu@lists.linux-foundation.org, LKML Subject: Re: [PATCH 09/24] drivers/iommu: check actual error on iommu_init Message-ID: <20140617152154.GE31771@8bytes.org> References: <53A050BF.3000101@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <53A050BF.3000101@oracle.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-DSPAM-Result: Whitelisted X-DSPAM-Processed: Tue Jun 17 17:21:55 2014 X-DSPAM-Confidence: 0.9983 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 53a05d1320869736716365 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 17, 2014 at 10:29:19PM +0800, Jeff Liu wrote: > From: Jie Liu > > 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 > Signed-off-by: Jie Liu Acked-by: Joerg Roedel