Received: by 10.223.164.202 with SMTP id h10csp473938wrb; Fri, 10 Nov 2017 09:17:06 -0800 (PST) X-Google-Smtp-Source: AGs4zMZSBY8tBskPwjZtGHVJQNav96TvDePvxbwh1v5I3nEZ+jjANb1pyn/ljGMPJ1pjM+kLZ459 X-Received: by 10.159.242.132 with SMTP id u4mr1038082plr.296.1510334226057; Fri, 10 Nov 2017 09:17:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510334226; cv=none; d=google.com; s=arc-20160816; b=iezc2WAiXEaXKPi/8f0Uob75mN4NzntctRY0sv9J3lB4/jTjD3r32P8I/7rKzG80o5 NhXX1J+5wVRT/h9EOrGBVrlymzissiyjufft0thCAWHFrHjaoElbnb26D5TVfna5negJ Ep7BjZ/8ys4IapnH4f6FmzOwDIv7hRLpgtBtR4lYCPnY3ZCg8H0DRXhp8c6Ea9hsViDl OlHhldHQOjqqsuYAJEeB/eMRf0xIjo+3jxFysOV8qQAcsBByJ+oos86zLaSMsas+xWwx IRwKS9J0uKXBroX8pCvXETi63PgxzdQS3p6mD0W1ZHTyjC5l3qa3kzCGiJb7eVYK9PQa Q3dQ== 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:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject:arc-authentication-results; bh=f44oeLcjWove2pUU6QSVvs9VCOKTPtbgOcF/MbEgpdo=; b=ALYc3HnSPGLmtJ+uJqaxlFo5Qr/ajlZBBZrLLTLV7v5WE6sz9UL3Q7IihyHUYVruli E6C4Fe0RkP3qVt7W/BWDG4wPbW9GHdWj47oFgiJwdjGmsfPU58v2v6t2AkGdb964g5qE 8PuNLJUyMxYqurY64mW+SgKlRrCgW0XYopMQ0bfqUM+OH65wfxPXl+k74ZNZ7gKO+oH8 0NN21zYltwsq8+WVJC7gxZeevPT3Aw5HUlIbstlwpOODeWvqrQVfrWZ3hCTuct0+skJx GcsO73Yyoir18prZAJQAMigjFoDNDoaR8BwRiVmH5fgFl3yJqSiZ4zAlVPJ0f6BakzmB 4pPg== 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 e26si10027932pfj.1.2017.11.10.09.16.55; Fri, 10 Nov 2017 09:17:06 -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 S1753530AbdKJROw (ORCPT + 82 others); Fri, 10 Nov 2017 12:14:52 -0500 Received: from dd39320.kasserver.com ([85.13.155.146]:52452 "EHLO dd39320.kasserver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753120AbdKJROu (ORCPT ); Fri, 10 Nov 2017 12:14:50 -0500 Received: from [192.168.0.36] (109.125.99.188.dynamic.cablesurf.de [109.125.99.188]) by dd39320.kasserver.com (Postfix) with ESMTPSA id BEF252CE0104; Fri, 10 Nov 2017 18:14:48 +0100 (CET) Subject: Re: [PATCH] staging: pi433: fix missing break in switch statement. To: Colin Ian King , Greg Kroah-Hartman , Marcus Wolf , Al Viro , devel@driverdev.osuosl.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org References: <20171109171955.10911-1-colin.king@canonical.com> From: Marcus Wolf Message-ID: <3bedae57-780a-7baf-ab2c-739d5990fe3f@smarthome-wolf.de> Date: Fri, 10 Nov 2017 18:14:48 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Colin, thanks for clarification. Should I switch to that repo for further work, too? If so, can anybody provide me the link? Do I need Gregs staging any longer, or is it kind of dead for devel on pi433 driver? Thank you so much! Marcus Am 10.11.2017 um 18:04 schrieb Colin Ian King: > On 10/11/17 16:49, Marcus Wolf wrote: >> Hi all! >> >> Tryed to cross check... >> >> Don't get it, sorry. >> >> On my private version control (my SVN), where I initially developed the >> driver the break isn't missing. >> Same with my git copy of Gregs staging tree. Break is there... >> >> Who removed it, why is it missing in Colins copy? >> >> Am I working on a wrong version? > > I was working on the latest, that got landed into linux-next. This had > picked up some modifications from Al-Viro. > > Hope that clarifies things > > Colin > >> >> marcus@Laptop-Wolf:~/staging/drivers/staging/pi433$ git remote show origin >> * remote origin >>   Fetch URL: >> git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git >>   Push  URL: >> git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git >> >> >> Can anybody help me? >> >> Thanks, >> >> Marcus >> >> >> Am 09.11.2017 um 19:19 schrieb Colin King: >>> From: Colin Ian King >>> >>> The PI433_IOC_WR_RX_CFG case is missing a break and will fall through >>> to the default case and errorenously return -EINVAL. Fix this by >>> adding in missing break. >>> >>> Detected by CoverityScan, CID#1461286 ("Missing break in switch") >>> >>> Fixes: f81f0b5c9a30 ("pi433: sanitize ioctl") >>> Signed-off-by: Colin Ian King >>> --- >>>   drivers/staging/pi433/pi433_if.c | 1 + >>>   1 file changed, 1 insertion(+) >>> >>> diff --git a/drivers/staging/pi433/pi433_if.c >>> b/drivers/staging/pi433/pi433_if.c >>> index 3bcb59811cdf..a960fe2e7875 100644 >>> --- a/drivers/staging/pi433/pi433_if.c >>> +++ b/drivers/staging/pi433/pi433_if.c >>> @@ -811,6 +811,7 @@ pi433_ioctl(struct file *filp, unsigned int cmd, >>> unsigned long arg) >>>           } >>>             mutex_unlock(&device->rx_lock); >>> +        break; >>>       default: >>>           retval = -EINVAL; >>>       } >>> >> -- >> To unsubscribe from this list: send the line "unsubscribe >> kernel-janitors" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at  http://vger.kernel.org/majordomo-info.html From 1583699468864391391@xxx Fri Nov 10 17:05:08 +0000 2017 X-GM-THRID: 1583609857677630176 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread