diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ide/ide-disk.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ide/ide-disk.c b/drivers/ide/ide-disk.c index 7433e07de30e..471bb0d42eb0 100644 --- a/drivers/ide/ide-disk.c +++ b/drivers/ide/ide-disk.c | |||
@@ -435,12 +435,11 @@ static int idedisk_prep_fn(struct request_queue *q, struct request *rq) | |||
435 | if (!(rq->cmd_flags & REQ_FLUSH)) | 435 | if (!(rq->cmd_flags & REQ_FLUSH)) |
436 | return BLKPREP_OK; | 436 | return BLKPREP_OK; |
437 | 437 | ||
438 | cmd = kmalloc(sizeof(*cmd), GFP_ATOMIC); | 438 | cmd = kzalloc(sizeof(*cmd), GFP_ATOMIC); |
439 | 439 | ||
440 | /* FIXME: map struct ide_taskfile on rq->cmd[] */ | 440 | /* FIXME: map struct ide_taskfile on rq->cmd[] */ |
441 | BUG_ON(cmd == NULL); | 441 | BUG_ON(cmd == NULL); |
442 | 442 | ||
443 | memset(cmd, 0, sizeof(*cmd)); | ||
444 | if (ata_id_flush_ext_enabled(drive->id) && | 443 | if (ata_id_flush_ext_enabled(drive->id) && |
445 | (drive->capacity64 >= (1UL << 28))) | 444 | (drive->capacity64 >= (1UL << 28))) |
446 | cmd->tf.command = ATA_CMD_FLUSH_EXT; | 445 | cmd->tf.command = ATA_CMD_FLUSH_EXT; |