ktrace: Remove vrele() at the end of ktr_writerequest()

As of commit fc369a353 we no longer ref the vnode when writing a record.
Drop the corresponding vrele() call in the error case.

Fixes:	fc369a353 ("ktrace: fix a race between writes and close")
Reported by:	syzbot+9b96ea7a5ff8917d3fe4@syzkaller.appspotmail.com
Reported by:	syzbot+6120ebbb354cd52e5107@syzkaller.appspotmail.com
Reviewed by:	kib
MFC after:	6 days
Differential Revision:	https://reviews.freebsd.org/D30404
This commit is contained in:
Mark Johnston 2021-05-23 13:20:05 -04:00
parent e2ab16b1a6
commit 6f6cd1e8e8

View File

@ -1361,7 +1361,6 @@ ktr_writerequest(struct thread *td, struct ktr_request *req)
PROC_UNLOCK(p);
ktr_io_params_free(kiop1);
ktr_io_params_free(kiop);
vrele(vp);
}
/*