From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 078AF188596; Fri, 28 Mar 2025 14:05:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743170719; cv=none; b=mmVor3o3HiZaqac6U+pltuZ/UJqJ2rzDbvgChgZWIg1SpDhGCtcEq9AeshmnWOjEJXPk4SfbF8/elk1ewnhmnhHJg+rnSbm7isqBvKEbYPS1MIBu9pNFzj6etrG6tCu1Q2XwxB6ZuJSRt+dAmzA7BNYDdKpj0cyX1Yp8sMjsA4g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743170719; c=relaxed/simple; bh=5cWOUCJIB4lTLougmiAzw9dNcnD4w2lCeNgwbw7TZlo=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=YQYQj+RM8/D3iLSdvVbL17dwI5fFuW1vu4YpKrmy/SjwTd8K2o/kPFU6U80wn4xH4kpvKPB2fSJxlNTua9hx4oSL29Ky0rkRUWFojp/YQZfB74lWYeaT5dQYt7i0laomxPNEKoS0hF/P6NXxG/4mPoA5tYsfgbqVWBlxIHSHbE4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=cuElf3qy; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=xDRiVtjh; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="cuElf3qy"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="xDRiVtjh" From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1743170716; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=I6YPLumZITzzLekUQIrMxuZMrWTUi05abn63fn/MC7I=; b=cuElf3qyttvW4wTy4V6qJdF5j5h+TM5XurS3EXAepHolGiOyFnpWcic30E36tT4Z/+Gqjd kLXpq9Q3DotesvCWbw/tjgTxdDR+XYIKga+cWXwhQ8G2ZNLWU1e2O25yt4cl1eIl8Gos0i 231Oaao887seYBxeYMLMRFpkGDsHl7HVtWVHhzdAEAGkJFfyazP52KCNxcWSHbOcZ/C4lw RZdqMZDdoDd/9/hraP0cCAU/WQBqaiFwC4hiz7Cfj3fllvnAEdqgvoitLrOg9yJvfEVH3Q 3g3dB6oB6Rz0VbE6+zQOYqNKZ3NjyBrQVTdrSsEUu80VLNxzl22jTV043eZWpg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1743170716; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=I6YPLumZITzzLekUQIrMxuZMrWTUi05abn63fn/MC7I=; b=xDRiVtjhHlcJcTl1CHzPR82ZJR7hGxj3A1wnsDyEc1fjIarLfVZHyZxJ13IgBYnEhnGD6b IhVV1V4MUT/mmWAQ== To: Dan Carpenter Cc: LKML , Marc Zyngier , Manivannan Sadhasivam , "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, Peter Zijlstra , Nishanth Menon , Jonathan Cameron , Dhruva Gole , Tero Kristo , Santosh Shilimkar , Logan Gunthorpe , Dave Jiang , Jon Mason , Allen Hubbe , ntb@lists.linux.dev, Bjorn Helgaas , linux-pci@vger.kernel.org, Michael Kelley , Wei Liu , Haiyang Zhang , linux-hyperv@vger.kernel.org, Wei Huang , Jonathan Cameron Subject: Re: [patch V2 09/10] scsi: ufs: qcom: Remove the MSI descriptor abuse In-Reply-To: References: <20250313130212.450198939@linutronix.de> <20250313130321.963504017@linutronix.de> Date: Fri, 28 Mar 2025 15:05:15 +0100 Message-ID: <87tt7dw8ro.ffs@tglx> Precedence: bulk X-Mailing-List: linux-hyperv@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Fri, Mar 28 2025 at 13:00, Dan Carpenter wrote: > On Thu, Mar 13, 2025 at 02:03:51PM +0100, Thomas Gleixner wrote: >> @@ -1799,8 +1803,7 @@ static irqreturn_t ufs_qcom_mcq_esi_hand >> static int ufs_qcom_config_esi(struct ufs_hba *hba) >> { >> struct ufs_qcom_host *host = ufshcd_get_variant(hba); >> - struct msi_desc *desc; >> - struct msi_desc *failed_desc = NULL; >> + struct ufs_qcom_irq *qi; >> int nr_irqs, ret; >> >> if (host->esi_enabled) >> @@ -1811,47 +1814,47 @@ static int ufs_qcom_config_esi(struct uf >> * 2. Poll queues do not need ESI. >> */ >> nr_irqs = hba->nr_hw_queues - hba->nr_queues[HCTX_TYPE_POLL]; >> + qi = devm_kcalloc(hba->dev, nr_irqs, sizeof(*qi), GFP_KERNEL); >> + if (qi) > > This NULL check is reversed. Missing !. Duh. I'm sure I've fixed that before.