From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from zimbra13.linbit.com (zimbra.linbit.com [212.69.161.123]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail09.linbit.com (LINBIT Mail Daemon) with ESMTPS id BA45A1051881 for ; Fri, 25 Mar 2016 12:02:32 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zimbra13.linbit.com (Postfix) with ESMTP id A9B9C3EBFF0 for ; Fri, 25 Mar 2016 12:02:32 +0100 (CET) Received: from zimbra13.linbit.com ([127.0.0.1]) by localhost (zimbra13.linbit.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 0_mD3dFVwQxE for ; Fri, 25 Mar 2016 12:02:32 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zimbra13.linbit.com (Postfix) with ESMTP id 892293EC1E3 for ; Fri, 25 Mar 2016 12:02:32 +0100 (CET) Received: from zimbra13.linbit.com ([127.0.0.1]) by localhost (zimbra13.linbit.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ZV3eaXNNjEu4 for ; Fri, 25 Mar 2016 12:02:32 +0100 (CET) Received: from localhost (chello213047144126.1.15.vie.surfer.at [213.47.144.126]) by zimbra13.linbit.com (Postfix) with ESMTPSA id 5B5033EBFF0 for ; Fri, 25 Mar 2016 12:02:32 +0100 (CET) Date: Fri, 25 Mar 2016 12:02:31 +0100 From: Roland Kammerer To: drbd-dev@lists.linbit.com Message-ID: <20160325110231.GA15462@rck.sh> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Drbd-dev] [CASE-35] Please check double auto-increment on history_uuids[i++]. List-Id: "*Coordination* of development, patches, contributions -- *Questions* \(even to developers\) go to drbd-user, please." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, Mar 25, 2016 at 07:30:29PM +0900, Jaeheon Kim wrote: > Hi, > > According to the following code, local i variable be incremented by twice > in one loop. > Is this auto-increment operation no problem? > > > receive_uuids110() > { > ... > for (i = 0; i < history_uuids; i++) > peer_device->history_uuids[i++] = > be64_to_cpu(p->other_uuids[pos++]); > ... > } > Thanks for reporting, yes, the double increment seems wrong to me. Regards, rck