1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-21 07:15:49 +00:00
Mirror of the FreeBSD src repository https://git.FreeBSD.org/src.git .
Go to file
Mark Johnston d068ea16e3 cam: Let cam_periph_unmapmem() return an error
As of commit b059686a71, cam_periph_unmapmem() can legitimately fail
if the copyout() operation fails.  However, this failure was never
signaled to upper layers.  In practice it is unlikely to occur
since cap_periph_mapmem() would most likely fail in such
circumstances anyway, but an error is nonetheless possible.

However, some code reading revealed a few paths where the return value
of cam_periph_mapmem() is not checked, and this is definitely a bug.
Add error checking there and let cam_periph_unmapmem() return errors
from copyout().

Reviewed by:	dab, mav
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D43201
2023-12-28 12:36:15 -05:00
.cirrus-ci
.github
bin cat: Use present tense 2023-12-26 16:53:40 -07:00
cddl
contrib atf-sh: fix comment typo 2023-12-26 16:24:42 -07:00
crypto
etc mtree: Add missing directories to BSD.tests.dist 2023-12-27 22:26:31 -07:00
gnu
include
kerberos5
lib Reorganize libclang_rt Makefile and make more lib/arch combos available 2023-12-28 13:57:41 +01:00
libexec
release
rescue
sbin tree: Use 1 semicolon at the end of a statement 2023-12-27 21:05:47 -07:00
secure
share ena: Update the license dating to 2023 2023-12-28 13:56:36 +00:00
stand stand: Fix typo (triple S) 2023-12-27 20:24:31 -07:00
sys cam: Let cam_periph_unmapmem() return an error 2023-12-28 12:36:15 -05:00
targets
tests Block cloning tests. 2023-12-26 12:01:53 -08:00
tools gpioevents: Fix a typo in a diagnostic output message 2023-12-27 09:41:48 +01:00
usr.bin use long manpage URL (broken in last commit) 2023-12-28 15:58:56 +00:00
usr.sbin tree: Use 1 semicolon at the end of a statement 2023-12-27 21:05:56 -07:00
.arcconfig
.arclint
.cirrus.yml
.clang-format
.git-blame-ignore-revs
.gitattributes Remove SVN related Git attributes 2023-12-26 10:28:28 -07:00
.gitignore
.mailmap
CONTRIBUTING.md CONTRIBUTING.md: fix typo from commmit to commit 2023-12-28 10:01:03 -05:00
COPYRIGHT
LOCKS Update LOCKS for Git 2023-12-26 10:28:25 -07:00
MAINTAINERS Update MAINTAINERS for Git 2023-12-26 10:28:25 -07:00
Makefile
Makefile.inc1
Makefile.libcompat
Makefile.sys.inc
ObsoleteFiles.inc
README.md
RELNOTES RELNOTES: Add an entry for commit 1a87880700 2023-12-26 15:01:42 -08:00
UPDATING

FreeBSD Source:

This is the top level of the FreeBSD source directory.

FreeBSD is an operating system used to power modern servers, desktops, and embedded platforms. A large community has continually developed it for more than thirty years. Its advanced networking, security, and storage features have made FreeBSD the platform of choice for many of the busiest web sites and most pervasive embedded networking and storage devices.

For copyright information, please see the file COPYRIGHT in this directory. Additional copyright information also exists for some sources in this tree - please see the specific source directories for more information.

The Makefile in this directory supports a number of targets for building components (or all) of the FreeBSD source tree. See build(7), config(8), FreeBSD handbook on building userland, and Handbook for kernels for more information, including setting make(1) variables.

For information on the CPU architectures and platforms supported by FreeBSD, see the FreeBSD website's Platforms page.

Source Roadmap:

Directory Description
bin System/user commands.
cddl Various commands and libraries under the Common Development and Distribution License.
contrib Packages contributed by 3rd parties.
crypto Cryptography stuff (see crypto/README).
etc Template files for /etc.
gnu Commands and libraries under the GNU General Public License (GPL) or Lesser General Public License (LGPL). Please see gnu/COPYING and gnu/COPYING.LIB for more information.
include System include files.
kerberos5 Kerberos5 (Heimdal) package.
lib System libraries.
libexec System daemons.
release Release building Makefile & associated tools.
rescue Build system for statically linked /rescue utilities.
sbin System commands.
secure Cryptographic libraries and commands.
share Shared resources.
stand Boot loader sources.
sys Kernel sources (see sys/README.md).
targets Support for experimental DIRDEPS_BUILD
tests Regression tests which can be run by Kyua. See tests/README for additional information.
tools Utilities for regression testing and miscellaneous tasks.
usr.bin User commands.
usr.sbin System administration commands.

For information on synchronizing your source tree with one or more of the FreeBSD Project's development branches, please see FreeBSD Handbook.