From: David Howells Subject: Re: [PATCH] rxrpc: sendmsg: Fix variable overwrite in rxrpc_queue_packet Date: Mon, 27 Nov 2017 18:55:59 +0000 Message-ID: <17004.1511808959@warthog.procyon.org.uk> References: <20171127180207.GA25428@embeddedor.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: dhowells@redhat.com, "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: "Gustavo A. R. Silva" Return-path: In-Reply-To: <20171127180207.GA25428@embeddedor.com> Content-ID: <17003.1511808959.1@warthog.procyon.org.uk> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org Gustavo A. R. Silva wrote: > Value assigned to variable resend_at is overwritten before it can be used. > > Fix this by removing the value overwrite as it seems that this is a > leftover code. NAK. Your fix will actually cause the code to break. The resend_at value used for the timer must be based on the current time (ie. jiffies in this case), so we can't simply remove that line as the previously calculated resend_at value is a duration, not a time. What you need to do is to instead modify the line you wanted to remove to add 'now' to the previously-computed value. David