aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos Margiolis <christos@FreeBSD.org>2024-05-20 17:41:18 +0000
committerChristos Margiolis <christos@FreeBSD.org>2024-05-20 17:41:18 +0000
commitd59058f3b31353442497e728dd5beb80585ad8d2 (patch)
treef0e8987870d052bd42dda20aeceee112a4a2b610
parentda590a3e18cb883ba0444b78deeca5a2ed0b042f (diff)
downloadsrc-d59058f3b31353442497e728dd5beb80585ad8d2.tar.gz
src-d59058f3b31353442497e728dd5beb80585ad8d2.zip
sound: Make SNDST_UNVLBUF_MAX a power of two
Fixes: 074d337ad618 ("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
-rw-r--r--sys/sys/sndstat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/sndstat.h b/sys/sys/sndstat.h
index 8a49042b0453..e0e403b1a72a 100644
--- a/sys/sys/sndstat.h
+++ b/sys/sys/sndstat.h
@@ -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)