diff options
| -rw-r--r-- | sound/core/timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/timer.c b/sound/core/timer.c index 665089c45560..b6f076bbc72d 100644 --- a/sound/core/timer.c +++ b/sound/core/timer.c | |||
| @@ -1520,7 +1520,7 @@ static int snd_timer_user_next_device(struct snd_timer_id __user *_tid) | |||
| 1520 | } else { | 1520 | } else { |
| 1521 | if (id.subdevice < 0) | 1521 | if (id.subdevice < 0) |
| 1522 | id.subdevice = 0; | 1522 | id.subdevice = 0; |
| 1523 | else | 1523 | else if (id.subdevice < INT_MAX) |
| 1524 | id.subdevice++; | 1524 | id.subdevice++; |
| 1525 | } | 1525 | } |
| 1526 | } | 1526 | } |
