]> git.baikalelectronics.ru Git - kernel.git/commit
rxrpc: Fix variable overwrite
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Tue, 28 Nov 2017 17:28:52 +0000 (11:28 -0600)
committerDavid Howells <dhowells@redhat.com>
Wed, 29 Nov 2017 14:44:22 +0000 (14:44 +0000)
commitda37a551d4a11de973d64d8733707f29decf7807
tree3fb0133ea601ed5a3f97f1fbaec0f5f72a70c1ff
parentfda6d41ca5770e9346fddfc11b4cec0e437dd6ca
rxrpc: Fix variable overwrite

Values assigned to both variable resend_at and ack_at are overwritten
before they can be used.

The correct fix here is to add 'now' to the previously computed value in
resend_at and ack_at.

Addresses-Coverity-ID: 1462262
Addresses-Coverity-ID: 1462263
Addresses-Coverity-ID: 1462264
Fixes: b5e0a8353bcd ("rxrpc: Express protocol timeouts in terms of RTT")
Link: https://marc.info/?i=17004.1511808959%40warthog.procyon.org.uk
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: David Howells <dhowells@redhat.com>
net/rxrpc/call_event.c
net/rxrpc/sendmsg.c