From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (bilbo.ozlabs.org [103.22.144.67]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3zmdwX636TzF0xg for ; Thu, 22 Feb 2018 00:43:08 +1100 (AEDT) In-Reply-To: <20180216130118.26008-1-fbarrat@linux.vnet.ibm.com> To: Frederic Barrat , andrew.donnellan@au1.ibm.com, linuxppc-dev@lists.ozlabs.org From: Michael Ellerman Cc: dan.carpenter@oracle.com Subject: Re: ocxl: Fix potential bad errno on irq allocation Message-Id: <3zmdwX4ty5z9sWK@ozlabs.org> Date: Thu, 22 Feb 2018 00:43:08 +1100 (AEDT) List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, 2018-02-16 at 13:01:18 UTC, Frederic Barrat wrote: > Fix some issues found by a static checker: > > When allocating an AFU interrupt, if the driver cannot copy the output > parameters to userland, the errno value was not set to EFAULT > > Remove a (now) useless cast. > > Reported-by: Dan Carpenter > Signed-off-by: Frederic Barrat > Acked-by: Andrew Donnellan Applied to powerpc fixes, thanks. https://git.kernel.org/powerpc/c/423688abd9ab654044bddd82eb5983 cheers