diff options
| author | Tom Rini <[email protected]> | 2025-11-07 08:26:59 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-11-07 08:26:59 -0600 |
| commit | df786b4c57f582b4f875effe68d3ae22bbb478a9 (patch) | |
| tree | d58021af29a136ce4a9764ac31c2b91c15e868fb /lib | |
| parent | b660df558545b42f7257899807b83cfc620b2983 (diff) | |
| parent | 6bb374b1a1226b964db8476b2939a280c7477e4a (diff) | |
Merge tag 'efi-2026-01-rc2' of https://source.denx.de/u-boot/custodians/u-boot-efi
Pull request efi-2026-01-rc2
CI: https://source.denx.de/u-boot/custodians/u-boot-efi/-/pipelines/28208
Documentation:
* bootstd: Describe environment variable extension_overlay_addr
environment and remove extension support from TODO list
EFI:
* Correct the detection of the video mode in the EFI payload app:
- Use struct efi_gop_mode_info in the definition of struct
efi_entry_gopmode.
- In function get_mode_from_entry() use the correct type for the video
mode structure.
* Use a valid error code as return value in efi_store_memory_map().
* Avoid a memory leak for the variable name in efi_bl_create_block_device().
* Correct the code indentation in efi_uc_stop().
* Correct the description of struct efi_priv.
* Fix typos in code comments.
Other:
* qfw: Add more fields and a heading to qfw list
* Fix the support for ACPI pass-through on ARM and RISC-V:
Avoid zeroing out the XSDT address
* test: provide unit test for 'acpi list' command
# -----BEGIN PGP SIGNATURE-----
#
# iQIzBAABCAAdFiEEbcT5xx8ppvoGt20zxIHbvCwFGsQFAmkNj/kACgkQxIHbvCwF
# GsS8NQ/6Aj+Z54HJTIEfoXssvElLr5ATactrCxszq42i/yy6dLqa2Ym1afG6w1XS
# 1ZbCeU/bCXFke5Tsz+x89gEfckUm83oTwngwcID0WR1qn8mWjwR7tM5MuORq8NxU
# 7NwLuFs9O/QZihagKdz6hv1/Y+cBwiAYLY16EYVSuUlbLaKQo3QvxwWkqG3jdKWV
# Rm58/PolU+2h04MBwP0SxSduX4OyRF/tMOGjf5RGLyqCyj8kIgdu7PvUAPMM+Gps
# KemL59V0Bdv8hlF4JknmPz+idtZg2nHIDdNrBZvoxwzwGQeRZ1YXAMruRxZXqDYL
# tiuDp6HMv/GfIIGkz14tJtJMdboaAybAnluPWGalx8JQJqJzEPww0R+9s4KKQeWL
# mHgRyl6PxVV9p19f79Qq6q6ETwrFDX0YH3pdrGUk3DBa3lDt0UsEAnuW4FvaJ8tx
# 3PMrjKAxpxocT0hglsMVnptnfvDEigMsjwH/TWrau83mY+juxFQLjm+U4vye+qCa
# 4zXjjLas18+eRcrv2KxU7teakyi1Jp+WbqHq37L26YcQMaLq/RkBc0bTrsreKKLu
# jprYFpvc7EJpH2Fd1XWaZ2EnxXcVSJSvrY/iwRQqb6wbwQ6XGtMvSh3IFY8IzAoh
# N2Pj78oaYqyL1q/TftuZWhEHo3a0M/HfM4D+oMSHzJtWCb0wZHE=
# =OGcS
# -----END PGP SIGNATURE-----
# gpg: Signature made Fri 07 Nov 2025 12:21:45 AM CST
# gpg: using RSA key 6DC4F9C71F29A6FA06B76D33C481DBBC2C051AC4
# gpg: Good signature from "Heinrich Schuchardt <[email protected]>" [unknown]
# gpg: aka "[jpeg image of size 1389]" [unknown]
# gpg: WARNING: This key is not certified with a trusted signature!
# gpg: There is no indication that the signature belongs to the owner.
# Primary key fingerprint: 6DC4 F9C7 1F29 A6FA 06B7 6D33 C481 DBBC 2C05 1AC4
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/efi_client/efi.c | 6 | ||||
| -rw-r--r-- | lib/efi_driver/efi_block_device.c | 8 | ||||
| -rw-r--r-- | lib/efi_driver/efi_uclass.c | 2 | ||||
| -rw-r--r-- | lib/efi_loader/efi_net.c | 2 |
4 files changed, 7 insertions, 11 deletions
diff --git a/lib/efi_client/efi.c b/lib/efi_client/efi.c index bcb34d67465..a3a40b5549d 100644 --- a/lib/efi_client/efi.c +++ b/lib/efi_client/efi.c @@ -155,7 +155,7 @@ int efi_store_memory_map(struct efi_priv *priv) putc(' '); printhex2(ret); puts(" No memory map\n"); - return ret; + return -EFAULT; } /* * Since doing a malloc() may change the memory map and also we want to @@ -168,7 +168,7 @@ int efi_store_memory_map(struct efi_priv *priv) if (!priv->memmap_desc) { printhex2(ret); puts(" No memory for memory descriptor\n"); - return ret; + return -EFAULT; } ret = boot->get_memory_map(&priv->memmap_size, priv->memmap_desc, @@ -177,7 +177,7 @@ int efi_store_memory_map(struct efi_priv *priv) if (ret) { printhex2(ret); puts(" Can't get memory map\n"); - return ret; + return -EFAULT; } return 0; diff --git a/lib/efi_driver/efi_block_device.c b/lib/efi_driver/efi_block_device.c index 070747de515..9ab956c7ef7 100644 --- a/lib/efi_driver/efi_block_device.c +++ b/lib/efi_driver/efi_block_device.c @@ -84,7 +84,7 @@ static ulong efi_bl_read(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, * efi_bl_write() - write to block device * * @dev: device - * @blknr: first block to be write + * @blknr: first block to write * @blkcnt: number of blocks to write * @buffer: input buffer * Return: number of blocks transferred @@ -124,7 +124,7 @@ efi_bl_create_block_device(efi_handle_t handle, void *interface) efi_status_t ret; int r; int devnum; - char *name; + char name[18]; /* strlen("efiblk#2147483648") + 1 */ struct efi_block_io *io = interface; struct efi_blk_plat *plat; @@ -136,9 +136,6 @@ efi_bl_create_block_device(efi_handle_t handle, void *interface) if (devnum < 0) return EFI_OUT_OF_RESOURCES; - name = calloc(1, 18); /* strlen("efiblk#2147483648") + 1 */ - if (!name) - return EFI_OUT_OF_RESOURCES; sprintf(name, "efiblk#%d", devnum); /* Create driver model udevice for the EFI block io device */ @@ -146,7 +143,6 @@ efi_bl_create_block_device(efi_handle_t handle, void *interface) devnum, io->media->block_size, (lbaint_t)io->media->last_block, &bdev)) { ret = EFI_OUT_OF_RESOURCES; - free(name); goto err; } diff --git a/lib/efi_driver/efi_uclass.c b/lib/efi_driver/efi_uclass.c index 7392c60f0f9..bd46c9f5539 100644 --- a/lib/efi_driver/efi_uclass.c +++ b/lib/efi_driver/efi_uclass.c @@ -227,7 +227,7 @@ static efi_status_t EFIAPI efi_uc_stop( goto out; } ret = EFI_SUCCESS; - goto out; + goto out; } /* Destroy all children */ diff --git a/lib/efi_loader/efi_net.c b/lib/efi_loader/efi_net.c index b8a6e08ba8e..0f8a851e3f2 100644 --- a/lib/efi_loader/efi_net.c +++ b/lib/efi_loader/efi_net.c @@ -372,7 +372,7 @@ out: } /* - * efi_net_receive_filters() - mange multicast receive filters + * efi_net_receive_filters() - manage multicast receive filters * * This function implements the ReceiveFilters service of the * EFI_SIMPLE_NETWORK_PROTOCOL. See the Unified Extensible Firmware Interface |
