From: Don Koch Subject: Re: [PATCH] xen/Coverity: Audit of MISSING_BREAK defects Date: Fri, 13 Feb 2015 09:27:28 -0500 Message-ID: <20150213092728.9ce21d8cacc2266bb8df40fb@verizon.com> References: <1423771726-11852-1-git-send-email-andrew.cooper3@citrix.com> <20150212160621.5ef7fa94d6cd6328e367dc9c@verizon.com> <54DDD987.1000503@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <54DDD987.1000503@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: Tim Deegan , Keir Fraser , Jan Beulich , Xen Coverity Team , Xen-devel List-Id: xen-devel@lists.xenproject.org On Fri, 13 Feb 2015 11:01:27 +0000 Andrew Cooper wrote: > On 12/02/15 21:06, Don Koch wrote: > > On Thu, 12 Feb 2015 20:08:46 +0000 > > Andrew Cooper wrote: > > [...] > > I'm surprised that coverity didn't complain about the fallthrough in > > the next case: > > > > case TASKLET_scheduled: > > clear_bit(_TASKLET_scheduled, tasklet_work); > > case 0: > > /*tasklet_work_scheduled = 0;*/ > > break; > > > > Or is my code out of date? > > > > With or without that change, > > Reviewed-by: Don Koch > > Another heuristic is a case statement followed by another case which > begins with a break. The defect would re-emerge if code gets uncommented. Gotcha. My R-b still stands. Thanks, -d > ~Andrew >