Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 154575
b: refs/heads/master
c: e18ed14
h: refs/heads/master
i:
  154573: a709182
  154571: 775cabe
  154567: 3d35e69
  154559: d66d186
v: v3
  • Loading branch information
Christian Engelmayer authored and David S. Miller committed Jun 30, 2009
1 parent bce7032 commit cfed108
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 2bf427b25b79eb7cea27963a66c3d4684cae0e0c
refs/heads/master: e18ed145c7f556f1de8350c32739bf35b26df705
3 changes: 2 additions & 1 deletion trunk/drivers/ide/ide-ioctls.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ static int ide_get_identity_ioctl(ide_drive_t *drive, unsigned int cmd,
goto out;
}

id = kmalloc(size, GFP_KERNEL);
/* ata_id_to_hd_driveid() relies on 'id' to be fully allocated. */
id = kmalloc(ATA_ID_WORDS * 2, GFP_KERNEL);
if (id == NULL) {
rc = -ENOMEM;
goto out;
Expand Down

0 comments on commit cfed108

Please sign in to comment.