From 530c7720a4e58f0d15e99f86f6c1f51b5ca157fc Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Tue, 3 Feb 2004 18:50:19 -0800 Subject: [PATCH] [PATCH] CDROMREADAUDIO frames From: Jens Axboe 2.6 imposes a 64 frame limit where 2.4 does not (just relies on kmalloc() failing and limiting frames from that). That breaks at least on guys app. With MSF adressing, it's much simpler to be able to ask for a full second at the time, so I think we should just allow that. So bump the limit from 64 to CD_FRAMES (which is 75). --- drivers/cdrom/cdrom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cdrom/cdrom.c b/drivers/cdrom/cdrom.c index bcad7f2456183..5f4ad2bacd766 100644 --- a/drivers/cdrom/cdrom.c +++ b/drivers/cdrom/cdrom.c @@ -2294,7 +2294,7 @@ static int mmc_ioctl(struct cdrom_device_info *cdi, unsigned int cmd, return -EINVAL; /* FIXME: we need upper bound checking, too!! */ - if (lba < 0 || ra.nframes <= 0 || ra.nframes > 64) + if (lba < 0 || ra.nframes <= 0 || ra.nframes > CD_FRAMES) return -EINVAL; /* -- 2.53.0