|
@@ -217,8 +217,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 +529,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;
|