mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
sound: Make SNDST_UNVLBUF_MAX a power of two
Fixes: 074d337ad6
("sound: Check user-supplied size passed to SNDSTIOC_ADD_USER_DEVS*")
Reported by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 day
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D45277
This commit is contained in:
parent
da590a3e18
commit
d59058f3b3
|
@ -77,7 +77,7 @@ struct sndstioc_nv_arg {
|
|||
/*
|
||||
* Maximum user-specified nvlist buffer size
|
||||
*/
|
||||
#define SNDST_UNVLBUF_MAX 65535
|
||||
#define SNDST_UNVLBUF_MAX 65536
|
||||
|
||||
#define SNDSTIOC_REFRESH_DEVS \
|
||||
_IO('D', 100)
|
||||
|
|
Loading…
Reference in a new issue