Module Name: src Committed By: riastradh Date: Wed May 24 00:02:51 UTC 2023
Modified Files: src/sys/dev: efi.c Log Message: efi(4): Fix logic to handle buffer sizing. Can't KASSERT(datasize <= databufsize) because the caller is allowed to pass in a too-small size and get ERR_BUFFER_TOO_SMALL back, with the actual size returned so it can resize its buffer. So just clamp the size to the smaller of what the caller provided and what the firwmare provided, instead of asserting anything. PR kern/57076 XXX pullup-10 To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/dev/efi.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.