- overrun-in-drivers-scsi-scsic.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     Overrun in drivers/scsi/scsi.c

has been removed from the -mm tree.  Its filename is

     overrun-in-drivers-scsi-scsic.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
Subject: Overrun in drivers/scsi/scsi.c
From: Eric Sesterhenn <snakebyte@xxxxxx>

This overrun was spotted by coverity (cid #1403).

If type == ARRAY_SIZE(scsi_device_types), we are off by one.

Signed-off-by: Eric Sesterhenn <snakebyte@xxxxxx>
Cc: James Bottomley <James.Bottomley@xxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/scsi/scsi.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/scsi/scsi.c~overrun-in-drivers-scsi-scsic drivers/scsi/scsi.c
--- a/drivers/scsi/scsi.c~overrun-in-drivers-scsi-scsic
+++ a/drivers/scsi/scsi.c
@@ -128,7 +128,7 @@ const char * scsi_device_type(unsigned t
 		return "Well-known LUN   ";
 	if (type == 0x1f)
 		return "No Device        ";
-	if (type > ARRAY_SIZE(scsi_device_types))
+	if (type >= ARRAY_SIZE(scsi_device_types))
 		return "Unknown          ";
 	return scsi_device_types[type];
 }
_

Patches currently in -mm which might be from snakebyte@xxxxxx are

origin.patch
git-gfs2.patch
remove-unnecessary-check-in-drivers-video-intelfb-intelfbhwc.patch
remove-unnecessary-check-in-drivers-net-depcac.patch
off-by-one-in-arch-ppc-platforms-mpc8.patch
git-scsi-misc.patch
remove-unnecessary-check-in-drivers-scsi-sgc.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux