VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   55 Tags
author: Young_X <YangX92@hotmail.com> 2018-10-03 12:54:29 +0000 committer: Jens Axboe <axboe@kernel.dk> 2018-10-03 10:20:40 -0600 commit: e4f3aa2e1e67bb48dfbaaf1cad59013d5a5bc276 parent: fb6360b1ef33b7799e6a81e1075a47e3b8ae01fd
Commit Summary:
cdrom: fix improper type cast, which can leat to information leak.
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/drivers/cdrom/cdrom.c b/drivers/cdrom/cdrom.c
index a5d5a96479bf..10802d1fc554 100644
--- a/drivers/cdrom/cdrom.c
+++ b/drivers/cdrom/cdrom.c
@@ -2445,7 +2445,7 @@ static int cdrom_ioctl_select_disc(struct cdrom_device_info *cdi,
 		return -ENOSYS;
 
 	if (arg != CDSL_CURRENT && arg != CDSL_NONE) {
-		if ((int)arg >= cdi->capacity)
+		if (arg >= cdi->capacity)
 			return -EINVAL;
 	}