aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/drivers/vx/vx_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/drivers/vx/vx_core.c b/sound/drivers/vx/vx_core.c
index c39961c11401..83596891cde4 100644
--- a/sound/drivers/vx/vx_core.c
+++ b/sound/drivers/vx/vx_core.c
@@ -205,7 +205,7 @@ static int vx_read_status(struct vx_core *chip, struct vx_rmh *rmh)
205 205
206 if (size < 1) 206 if (size < 1)
207 return 0; 207 return 0;
208 if (snd_BUG_ON(size > SIZE_MAX_STATUS)) 208 if (snd_BUG_ON(size >= SIZE_MAX_STATUS))
209 return -EINVAL; 209 return -EINVAL;
210 210
211 for (i = 1; i <= size; i++) { 211 for (i = 1; i <= size; i++) {