NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PR/57076 CVS commit: src/sys/dev



The following reply was made to PR kern/57076; it has been noted by GNATS.

From: "Taylor R Campbell" <riastradh%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/57076 CVS commit: src/sys/dev
Date: Wed, 24 May 2023 00:02:51 +0000

 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.
 


Home | Main Index | Thread Index | Old Index