Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5005852yba; Wed, 8 May 2019 06:31:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqx5q+CE0Zn9uum9eLHrTh0mnpE9IWnYsZzW/HK3deIqi7aOkORo2kU9y5KIJ2lGPvWaPY7t X-Received: by 2002:a17:902:1003:: with SMTP id b3mr47584731pla.306.1557322316574; Wed, 08 May 2019 06:31:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557322316; cv=none; d=google.com; s=arc-20160816; b=qrccxjiNStrYbv8eaW4wIC/V4c1ECWtloOahpy/AJKDWwsR+rYZbxv8Wb6qLUphm5v XDf2VVmFI5YfG/xdCozAx2Ogz4qsZ8HWIHgFzotTMX0Bh/6RCtRXkh7I+zpVlTtT50iY krbMP05R8dN9uckw+75ar7OBubGWAdHFkGh5AzCcdgPXKZYbOCDDPEyXlkElW5QRQvS8 572a3+if//6tWCXKAtm+ZvDtliaBHcnsw8vqUdVRgEXwgTdiMjox4o3y5XtP/kvEqIAB lHXNZd59Cii6kEcYCIs+xsTQz0FNCEPlDY5zT9gUxy0ChxGt2L19HgAeaDtgqlrddqVi 26Fw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=q9nEx8/E44ucf3as2s0tAnZhoBqojUVSR5ltD3thQfk=; b=oS5G7KWez7I+XhGI9qQSsJ5qce+xUf425GsJWuxK9Db9CwxcDcfXhHjDHFJVAabRm6 nkJu5UXNaInbZXewfVZVOQtxbnfP/WDbvJN1+4G5+9aEiAan0NS1jgs2Wx+I7Tsf872g 9yhVNY72wJT8v0MU2kY+oIy0Y0tVU6ZSu3fJ2fjrEKVGGs8T19vZHmT1ghlH411OJMZQ 6sIkfcr+K7IHByqYybNpkoBii0RaRJ6xplIgDDwJA6SEGlZr8BhL00UZ9L8xcJk0M8v4 1gv742OF3aONN1ZcTP4t+pnw/oRbJ33mRwwsc/uXGYH5Cog4KIxS0dqnGRlmYPP1skx2 +5/A== 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 f10si22616887pln.239.2019.05.08.06.31.39; Wed, 08 May 2019 06:31:56 -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 S1727081AbfEHMzg (ORCPT + 99 others); Wed, 8 May 2019 08:55:36 -0400 Received: from mx.socionext.com ([202.248.49.38]:8343 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726444AbfEHMzf (ORCPT ); Wed, 8 May 2019 08:55:35 -0400 Received: from unknown (HELO kinkan-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 08 May 2019 21:55:34 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id D817B180B3E; Wed, 8 May 2019 21:55:34 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Wed, 8 May 2019 21:55:34 +0900 Received: from yuzu.css.socionext.com (yuzu [172.31.8.45]) by kinkan.css.socionext.com (Postfix) with ESMTP id 8964B1A04E1; Wed, 8 May 2019 21:55:34 +0900 (JST) Received: from [127.0.0.1] (unknown [10.213.119.83]) by yuzu.css.socionext.com (Postfix) with ESMTP id 7AB7A121BCE; Wed, 8 May 2019 21:55:34 +0900 (JST) Subject: Re: serial: Add Milbeaut serial control To: Colin Ian King Cc: Greg Kroah-Hartman , Jiri Slaby , linux-serial@vger.kernel.org, "linux-kernel@vger.kernel.org" References: <246f81ba-0ed1-d5bc-1a48-bcf0fb2cc05e@canonical.com> From: "Sugaya, Taichi" Message-ID: Date: Wed, 8 May 2019 21:55:33 +0900 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <246f81ba-0ed1-d5bc-1a48-bcf0fb2cc05e@canonical.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Thank you for pointing out. On 2019/05/02 20:47, Colin Ian King wrote: > Hi, > > Static analysis with Coverity has picked up an issue in commit: > > commit ba44dc04300441b47618f9933bf36e75a280e5fe > Author: Sugaya Taichi > Date: Mon Apr 15 20:31:40 2019 +0900 > > serial: Add Milbeaut serial control > > In function mlb_usio_rx_chars() the u8 status is being bit-wise AND'd > with MLB_USIO_SSR_BRK (which is 1UL << 8) and hence the result is always > false, which looks incorrect to me. Is this intentional? > No. It is always false so should be dropped. I will send a fixes patch. Thanks, Sugaya Taichi > Colin >