From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751927AbdBFNJC (ORCPT ); Mon, 6 Feb 2017 08:09:02 -0500 Received: from 8bytes.org ([81.169.241.247]:40357 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751163AbdBFNJB (ORCPT ); Mon, 6 Feb 2017 08:09:01 -0500 Date: Mon, 6 Feb 2017 14:08:59 +0100 From: Joerg Roedel To: Eric Auger Cc: eric.auger.pro@gmail.com, iommu@lists.linux-foundation.org, dan.carpenter@oracle.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] iommu: fix static checker warning in iommu_insert_device_resv_regions Message-ID: <20170206130859.GD7339@8bytes.org> References: <1486372298-20448-1-git-send-email-eric.auger@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1486372298-20448-1-git-send-email-eric.auger@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 06, 2017 at 10:11:38AM +0100, Eric Auger wrote: > In case the device reserved region list is void, the returned value > of iommu_insert_device_resv_regions is uninitialized. Let's return 0 > in that case. > > This fixes commit 6c65fb318e8b ("iommu: iommu_get_group_resv_regions"). > > Reported-by: Dan Carpenter > Signed-off-by: Eric Auger Applied, thanks.