Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3032826imj; Mon, 11 Feb 2019 12:38:41 -0800 (PST) X-Google-Smtp-Source: AHgI3IYWefvQ4ljBtbuTNXW8TtDMyK9AsZ1WrDBmvR9BvLstN3/Q5mrGWTVeOf6RAgEVB2QxZ5aJ X-Received: by 2002:a63:fb42:: with SMTP id w2mr96693pgj.408.1549917521156; Mon, 11 Feb 2019 12:38:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549917521; cv=none; d=google.com; s=arc-20160816; b=xT0w26ciozfzgpsBLGliGRfONLLwNyVhVSk00b80vRsXlBoaGIX/BSKR5KGMNxbarb 3+45pJfNq8tqEEw2yjFInjGmaYxPJFFHoEmv2saSNe6PANRqdEai5aaPDC8GxZMiRkvZ mWzCRRzev87qc8TasvjalpljIimK/6qfD2bGkrO1E+vNXt39rIOTyuFrTFa/QQnUsbz6 JiXI2jGpyan6k4YjXNkb9cl4gyNZZ2a7ETqRhu7Yjy0kfrGaaejENnxn2IH8dQ177kMJ NaMAEMi83kC/j97Jtv0QC+uzIpe/iUT55K1hdWFDdpsAXiqqS4V8k4t1fJWzspldeuKr c/4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date; bh=kXFn6e+LFQQ+xKwSK+jjWfIr4rQKN/NXH7Hn8K+9/Xk=; b=Uu0tO9ti8raFyu4bU6WrzGRXsk30OpYWRo71HuOk8e/twN9BddnoYZipb5zMMP0cMf FGrSwlu4XJVUp6lNT23Ywc+kBhr79r1GSdzbMK9DewYAukuA52W1tJy2YjTcKH4BzViR YxNl5YQna6GNKSaPa1NWOgEd4G6DUiWa6edRG1pPUxOsDy7/qLIy6nePHdhEyQDDeG4T cdRhuk6AKQLcb1NgXd6vAC7G6EjWdRIFmjc+4bH1U5qdU9jTBWcLPMbNwsyDwwubwKov qQD8rIeFmKjXqiMZBJVYfPqR+v9Nq3dADtAk0gAI34xBiTjYCrIA6wmqRn56pb3Go2xr fv5w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 r2si10111655pgk.389.2019.02.11.12.38.25; Mon, 11 Feb 2019 12:38:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732471AbfBKSn1 (ORCPT + 99 others); Mon, 11 Feb 2019 13:43:27 -0500 Received: from gateway31.websitewelcome.com ([192.185.143.47]:17549 "EHLO gateway31.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728164AbfBKSn1 (ORCPT ); Mon, 11 Feb 2019 13:43:27 -0500 Received: from cm13.websitewelcome.com (cm13.websitewelcome.com [100.42.49.6]) by gateway31.websitewelcome.com (Postfix) with ESMTP id 6A9F9A0BBF for ; Mon, 11 Feb 2019 12:43:26 -0600 (CST) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id tGYAgCV37YTGMtGYAgWQD9; Mon, 11 Feb 2019 12:43:26 -0600 X-Authority-Reason: nr=8 Received: from [189.250.49.191] (port=43484 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1gtGY9-002GFC-Mw; Mon, 11 Feb 2019 12:43:25 -0600 Date: Mon, 11 Feb 2019 12:43:23 -0600 From: "Gustavo A. R. Silva" To: Peter Jones , Konrad Rzeszutek Wilk Cc: linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" , Kees Cook Subject: [PATCH] iscsi_ibft: Fix missing break in switch statement Message-ID: <20190211184323.GA3671@embeddedor> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 189.250.49.191 X-Source-L: No X-Exim-ID: 1gtGY9-002GFC-Mw X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.49.191]:43484 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 32 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add missing break statement in order to prevent the code from falling through to case ISCSI_BOOT_TGT_NAME, which is unnecessary. This bug was found thanks to the ongoing efforts to enable -Wimplicit-fallthrough. Fixes: b33a84a38477 ("ibft: convert iscsi_ibft module to iscsi boot lib") Cc: stable@vger.kernel.org Signed-off-by: Gustavo A. R. Silva --- drivers/firmware/iscsi_ibft.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/firmware/iscsi_ibft.c b/drivers/firmware/iscsi_ibft.c index 6bc8e6640d71..c51462f5aa1e 100644 --- a/drivers/firmware/iscsi_ibft.c +++ b/drivers/firmware/iscsi_ibft.c @@ -542,6 +542,7 @@ static umode_t __init ibft_check_tgt_for(void *data, int type) case ISCSI_BOOT_TGT_NIC_ASSOC: case ISCSI_BOOT_TGT_CHAP_TYPE: rc = S_IRUGO; + break; case ISCSI_BOOT_TGT_NAME: if (tgt->tgt_name_len) rc = S_IRUGO; -- 2.20.1