freebsd-src/sys/dev/xen
Mark Johnston 6cdff09c0d gntdev: Handle errors from suword32() in gntdev_alloc_gref()
Try to copy out output values before handling errors, and check that we
did so successfully.  In particular, it doesn't seem sensible to ignore
errors here, otherwise userspace won't have any way to refer to the
allocations.

This is in preparation for annotating copyin() and related functions
with __result_use_check.

Reviewed by:	royger
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D43145
2023-12-25 21:04:01 -05:00
..
balloon xen/dev: remove __unused from driver argument of identify functions 2023-11-28 13:32:57 +01:00
blkback xen/dev: switch to DEVMETHOD_END 2023-11-28 13:31:47 +01:00
blkfront xen/dev: switch to DEVMETHOD_END 2023-11-28 13:31:47 +01:00
bus xen: add atomic #defines to accomodate differing xen_ulong_t sizes 2023-12-15 14:59:26 +01:00
console sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
control xen/dev: remove __unused from driver argument of identify functions 2023-11-28 13:32:57 +01:00
cpu
debug
efi sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
evtchn sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
gntdev gntdev: Handle errors from suword32() in gntdev_alloc_gref() 2023-12-25 21:04:01 -05:00
grant_table xen/dev: remove __unused from driver argument of identify functions 2023-11-28 13:32:57 +01:00
netback xen/dev: switch to DEVMETHOD_END 2023-11-28 13:31:47 +01:00
netfront xen-netfront: attempt to make cleanup idempotent 2023-11-06 11:17:40 +01:00
privcmd sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
timer xen/intr: correct misuses of Xen handle pointer type 2023-11-28 12:51:19 +01:00
xenpci xen/dev: switch to DEVMETHOD_END 2023-11-28 13:31:47 +01:00
xenstore xen/dev: remove __unused from driver argument of identify functions 2023-11-28 13:32:57 +01:00