Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5761044imm; Mon, 23 Jul 2018 05:44:40 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfsSojJxJnbgAFyek6yLSp6d/DaUrklce7GYrHkaDyxZ13Gd4U/jqr6Vtlu+txdcaNVAzjd X-Received: by 2002:aa7:824d:: with SMTP id e13-v6mr13072111pfn.97.1532349880194; Mon, 23 Jul 2018 05:44:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532349880; cv=none; d=google.com; s=arc-20160816; b=moTBbMvbI/XC/HgA26dE+2lm/xyapNUG2BhMrdQI63EMjjzjJ355eTmRVT7uXzOi9r askPnZE+b04+VEP+uWO4HhLE5rKqT6rw7p73yBVWof4r9IwCXxf51jIq5HcDM4bqOqm0 BO4wwwwCFLMLJn/wlJVeKJizCL/6SVmcOFyeImRGYWOwKuy5IaEBtRQhl83FgpZx2OwB eBy5VnVFO0pMH0OivGzl2PlCVWcGRXzCUwz6iXfw9hGj55CtU58RT+cbtB5RcyRp5AZf 2lc06V/Np4/mdpV+bOf2C+8ECiGnn1IljEgWkf3I35TpSRXJa/M3fC96/1rMt4kjSZIq CDIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=kO4FGFjKIEOq0MCbf6UneovSFcZFWYlMvhDEaJhlBrs=; b=LRUcdgVj6BA4vq40UdOphciR0F+gSEsJK/MWYbMk9exfcy4ocd5lISQAnEhWsIsbOi K4Mpk2jsKVCztQCgYaJ++x0TiJZpp6UxU3zuJ2MrRMT11RK/5VAWxqkXFlcKsdrn9gPS /+dmXJjUuKoZ+a7wAXiLmQRNXdH1DU/Vmajkl3JXB7bMA69RhFdg/6++Z4Ex2/koM39f ptsh3vhEPaiMjpo9hmClXhfftfc1fd7tZJlV+N0pdjPy1bH+7Qv9SEum3vkmXOjufbwU Jb8gAQyAG73xxzzBJz6DzGSrVuF5ICFfsEJQhX07UszOMaghKWamoh5PDT3Dg4GxxUOr rxyw== 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 r14-v6si8812254pgl.490.2018.07.23.05.44.25; Mon, 23 Jul 2018 05:44:40 -0700 (PDT) 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 S2388659AbeGWNoD (ORCPT + 99 others); Mon, 23 Jul 2018 09:44:03 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:47642 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388242AbeGWNoC (ORCPT ); Mon, 23 Jul 2018 09:44:02 -0400 Received: from localhost (LFbn-1-12238-233.w90-92.abo.wanadoo.fr [90.92.53.233]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 0C222A95; Mon, 23 Jul 2018 12:42:58 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Gustavo A. R. Silva" , Richard Cochran , "David S. Miller" Subject: [PATCH 4.4 013/107] ptp: fix missing break in switch Date: Mon, 23 Jul 2018 14:41:07 +0200 Message-Id: <20180723122413.489202979@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180723122413.003644357@linuxfoundation.org> References: <20180723122413.003644357@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: "Gustavo A. R. Silva" [ Upstream commit 9ba8376ce1e2cbf4ce44f7e4bee1d0648e10d594 ] It seems that a *break* is missing in order to avoid falling through to the default case. Otherwise, checking *chan* makes no sense. Fixes: 72df7a7244c0 ("ptp: Allow reassigning calibration pin function") Signed-off-by: Gustavo A. R. Silva Acked-by: Richard Cochran Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/ptp/ptp_chardev.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/ptp/ptp_chardev.c +++ b/drivers/ptp/ptp_chardev.c @@ -88,6 +88,7 @@ int ptp_set_pinfunc(struct ptp_clock *pt case PTP_PF_PHYSYNC: if (chan != 0) return -EINVAL; + break; default: return -EINVAL; }