Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137649
b: refs/heads/master
c: 3937585
h: refs/heads/master
i:
  137647: f43a73c
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Mar 27, 2009
1 parent 697b641 commit 260c4a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e3d9a73a83d98fc466dabdcfe4f4e7e4419e3f8e
refs/heads/master: 39375853d77bea48b7b334daa3698277af8d33f4
4 changes: 3 additions & 1 deletion trunk/drivers/ide/ide-disk_proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ static int get_smart_data(ide_drive_t *drive, u8 *buf, u8 sub_cmd)
tf->command = ATA_CMD_SMART;
args.tf_flags = IDE_TFLAG_TF | IDE_TFLAG_DEVICE;
args.data_phase = TASKFILE_IN;
(void) smart_enable(drive);

return ide_raw_taskfile(drive, &args, buf, 1);
}

Expand Down Expand Up @@ -67,6 +67,8 @@ static int proc_idedisk_read_smart(char *page, char **start, off_t off,
ide_drive_t *drive = (ide_drive_t *)data;
int len = 0, i = 0;

(void)smart_enable(drive);

if (get_smart_data(drive, page, sub_cmd) == 0) {
unsigned short *val = (unsigned short *) page;
char *out = (char *)val + SECTOR_SIZE;
Expand Down

0 comments on commit 260c4a4

Please sign in to comment.