Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751346AbdCZDYH (ORCPT ); Sat, 25 Mar 2017 23:24:07 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:60166 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751252AbdCZDYG (ORCPT ); Sat, 25 Mar 2017 23:24:06 -0400 Date: Sat, 25 Mar 2017 20:14:59 -0700 (PDT) Message-Id: <20170325.201459.415344501888164456.davem@davemloft.net> To: khoroshilov@ispras.ru Cc: samuel@sortiz.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, ldv-project@linuxtesting.org Subject: Re: [PATCH] irda: vlsi_ir: fix check for dma mapping errors From: David Miller In-Reply-To: <1490395688-3666-1-git-send-email-khoroshilov@ispras.ru> References: <1490395688-3666-1-git-send-email-khoroshilov@ispras.ru> X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Sat, 25 Mar 2017 20:15:00 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 369 Lines: 11 From: Alexey Khoroshilov Date: Sat, 25 Mar 2017 01:48:08 +0300 > vlsi_alloc_ring() checks for dma mapping errors by comparison > returned address with zero, while pci_dma_mapping_error() should be used. > > Found by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Alexey Khoroshilov Applied.