]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - sound/core/timer.c
iommu/vt-d: Apply per pci device pasid table in SVA
[linux.git] / sound / core / timer.c
index 665089c455603c0c683144c419981f8215780e85..b6f076bbc72d14be37893e20b19cbfaedf2f728b 100644 (file)
@@ -1520,7 +1520,7 @@ static int snd_timer_user_next_device(struct snd_timer_id __user *_tid)
                                } else {
                                        if (id.subdevice < 0)
                                                id.subdevice = 0;
-                                       else
+                                       else if (id.subdevice < INT_MAX)
                                                id.subdevice++;
                                }
                        }