David Howells 2757a4dc18 afs: Fix access after dec in put functions
Reference-putting functions should not access the object being put after
decrementing the refcount unless they reduce the refcount to zero.

Fix a couple of instances of this in afs by copying the information to be
logged by tracepoint to local variables before doing the decrement.

[Fixed a bit in afs_put_server() that I'd missed but Marc caught]

Fixes: 341f741f04be ("afs: Refcount the afs_call struct")
Fixes: 452181936931 ("afs: Trace afs_server usage")
Fixes: 977e5f8ed0ab ("afs: Split the usage count on struct afs_server")
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
Link: https://lore.kernel.org/r/165911278430.3745403.16526310736054780645.stgit@warthog.procyon.org.uk/ # v1
2022-08-02 18:21:29 +01:00
..
2020-11-30 12:54:01 +00:00
2021-06-29 10:53:52 -07:00
2021-11-02 14:39:20 -05:00
2022-05-31 16:52:59 -07:00
2019-03-27 15:52:01 -03:00
2020-04-22 12:55:54 -07:00
2021-05-31 22:48:24 -04:00
2022-05-19 12:25:39 -04:00
2022-04-07 20:33:15 -07:00