]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC 366296: Avoid a dubious assignment to bio_data in aio_qbio().
authorJohn Baldwin <jhb@FreeBSD.org>
Sat, 7 Nov 2020 16:20:37 +0000 (16:20 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Sat, 7 Nov 2020 16:20:37 +0000 (16:20 +0000)
commitcc4c64bf78647509bedbc73970a03b2d3efcf284
treee0a83a102e004c783ab1eab66dc3969b720bb8a7
parent9662110d6f8acc082231ed99a232437d30470265
MFC 366296: 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().
sys/kern/vfs_aio.c