Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp34587ybj; Thu, 19 Sep 2019 10:14:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqx3w4fG6DBArJMm6dvTYnDaAeHtcA4V3I+GS2Y1NI+6eE9p3MxFJwcHyrWzFQeTKb8VIs4A X-Received: by 2002:aa7:db12:: with SMTP id t18mr17350645eds.156.1568913267942; Thu, 19 Sep 2019 10:14:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568913267; cv=none; d=google.com; s=arc-20160816; b=Htk3pV0l2yQNWucm8WV/ocnBJ3lJNJuKzl7hAxDJ7Snhxj6mFGkd13yQb1OHJ+/fX8 Rz3EPcBLr1fhBFga2ALmcZOEh5OGCynHp8nPMj4hfkluYvqur5qSmm89H8PKeyVY5zLu cGHxbGByYk/80oB6NAyGGh4gOhUxvPkJuEn1qT5kCRxnU381jGn1ku95kXJD/Rlj+TKv Y2ohYRqeWq8UL5iHeTQEqqDU0ctBcC+NFGHwLURigfqEzGNuYI5du2zQMABffr13k1aP sC1ldjKALpkTDoDya8oa7/qc9xUN/LwF6zeXj9SOtFtZSP0e80w54l7wy1MkMBanrceW H9jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=E2TMaSHa3nIFPiDia/A0MMgeRPLducKhFi+6FCx515s=; b=PL83idx65BzFI01q+v1t0IiR6+39cAQx4XZg0H4TOuLvZN7vCwevUyhTI9BulfH8Za csTdQsesyikP/oVP+qWoz8iTAfJp0MUYTO8Xm8QtDMTtSTN6DEqiz0JsCoC6OExCiS93 Venw/tEtF08h6t2dIU2uYYGdAN5jFn6/W2G5ykNr7LgP10fqK+eSiePkLnAMUCdIuNDE RT9ONGV7r5+lQzeMih38M/D2r/8oZs8qq9q+y4CeOBkvvPUAMRE2f3L1gv54YmRau/dx 36k6mpOMlJnQule2Q9zH8Y0xDHqR4rk5CrI/oTHeIKAldlV/3Do2iRQZWtByS0W21YRc 4sHA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m12si2086888ejr.180.2019.09.19.10.13.58; Thu, 19 Sep 2019 10:14:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389556AbfISOrf (ORCPT + 99 others); Thu, 19 Sep 2019 10:47:35 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:43296 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389041AbfISOrf (ORCPT ); Thu, 19 Sep 2019 10:47:35 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iAxiO-0005Fk-MS; Thu, 19 Sep 2019 16:47:24 +0200 Message-ID: Subject: Re: [PATCH] iwlwifi: fix a potential NULL pointer dereference From: Johannes Berg To: Allen , kvalo@codeaurora.org Cc: davem@davemloft.net, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Date: Thu, 19 Sep 2019 16:47:23 +0200 In-Reply-To: <2380f108-54a6-0110-4e2b-e66dd54ae800@oracle.com> References: <1568830262-5529-1-git-send-email-allen.pais@oracle.com> <2380f108-54a6-0110-4e2b-e66dd54ae800@oracle.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5 (3.30.5-1.fc29) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Thu, 2019-09-19 at 19:37 +0530, Allen wrote: > > > > + trans_pcie->rba.alloc_wq = alloc_workqueue("rb_allocator", > > + WQ_HIGHPRI | WQ_UNBOUND, 1); > > + if (!trans_pcie->rba.alloc_wq) { > > I would like to stick to if(unlikely(!trans_pcie->rba.alloc_wq) just > for consistency. That's just clutter, this path gets called exactly once in the lifetime of most systems ... > Let me know if I could add your SOB and send out V2. No no, I've already sent the patch on the way internally :) johannes