Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.26-rc1 /block/scsi_ioctl.c

Filename:/block/scsi_ioctl.c
Lines Added:2
Lines Deleted:6
Also changed in: (Previous) 2.6.25-git20  2.6.25-git19  2.6.25-git18  2.6.25-git17  2.6.25-git16  2.6.25-git15 
(Following) 2.6.26-rc2  2.6.26-rc3  2.6.26-rc4  2.6.26-rc5  2.6.26-rc6  2.6.26-rc7 

Location
[  2.6.26-rc1
  [  block
     o  scsi_ioctl.c

Patch

diff --git a/block/scsi_ioctl.c b/block/scsi_ioctl.c
index a2c3a93..78199c0 100644
--- a/block/scsi_ioctl.c
+++ b/block/scsi_ioctl.c
@@ -33,13 +33,12 @@
 #include <scsi/scsi_cmnd.h>
 
 /* Command group 3 is reserved and should never be used.  */
-const unsigned char scsi_command_size[8] =
+const unsigned char scsi_command_size_tbl[8] =
 {
    6, 10, 10, 12,
    16, 12, 10, 10
 };
-
-EXPORT_SYMBOL(scsi_command_size);
+EXPORT_SYMBOL(scsi_command_size_tbl);
 
 #include <scsi/sg.h>
 
@@ -217,8 +216,6 @@ EXPORT_SYMBOL_GPL(blk_verify_command);
 static int blk_fill_sghdr_rq(struct request_queue *q, struct request *rq,
               struct sg_io_hdr *hdr, int has_write_perm)
 {
-   memset(rq->cmd, 0, BLK_MAX_CDB); /* ATAPI hates garbage after CDB */
-
    if (copy_from_user(rq->cmd, hdr->cmdp, hdr->cmd_len))
       return -EFAULT;
    if (blk_verify_command(rq->cmd, has_write_perm))
@@ -531,7 +528,6 @@ static int __blk_send_generic(struct request_queue *q, struct gendisk *bd_disk,
    rq->data_len = 0;
    rq->extra_len = 0;
    rq->timeout = BLK_DEFAULT_SG_TIMEOUT;
-   memset(rq->cmd, 0, sizeof(rq->cmd));
    rq->cmd[0] = cmd;
    rq->cmd[4] = data;
    rq->cmd_len = 6;


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.