From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joerg Roedel Subject: Re: [PATCH] amd_iommu: do not dereference a NULL pointer address. Date: Thu, 25 Sep 2014 16:00:08 +0200 Message-ID: <20140925140008.GC28786@8bytes.org> References: <1410431283-21417-1-git-send-email-mlombard@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1410431283-21417-1-git-send-email-mlombard-H+wXaHxf7aLQT0dZR+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: Maurizio Lombardi Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org List-Id: iommu@lists.linux-foundation.org On Thu, Sep 11, 2014 at 12:28:03PM +0200, Maurizio Lombardi wrote: > under low memory conditions, alloc_pte() may return a NULL pointer. > iommu_map_page() does not check it and will panic the system. > > Signed-off-by: Maurizio Lombardi > --- > drivers/iommu/amd_iommu.c | 3 +++ > 1 file changed, 3 insertions(+) Applied, thanks.