]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit - sys/kern/vfs_aio.c
Avoid a dubious assignment to bio_data in aio_qbio().
authorjhb <jhb@FreeBSD.org>
Wed, 30 Sep 2020 17:49:06 +0000 (17:49 +0000)
committerjhb <jhb@FreeBSD.org>
Wed, 30 Sep 2020 17:49:06 +0000 (17:49 +0000)
commit646e74f7f5942c36539aa2760be8ca58a827def1
tree739a32ce751bddfd24b60f65bb10fbfe2e304613
parent66e06a40e69458dfea30644517d1cda1a8a3f7dd
Avoid a dubious assignment to bio_data in aio_qbio().

A user pointer is not a suitable value for bio_data and the next block
of code always overwrites bio_data anyway.  Just use cb->aio_buf
directly in the call to vm_fault_quick_hold_pages().

Reviewed by: kib
Obtained from: CheriBSD
MFC after: 1 month
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D26595
sys/kern/vfs_aio.c