Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 154313
b: refs/heads/master
c: af054ed
h: refs/heads/master
i:
  154311: 4e6179c
v: v3
  • Loading branch information
David S. Miller committed Jun 24, 2009
1 parent e1f5bbf commit c75d4b4
Show file tree
Hide file tree
Showing 2 changed files with 5 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: ffc36c7610731115c77700dcc53901920361c235
refs/heads/master: af054ed0018f0a69f8ea6f7546cbf34385edf13b
5 changes: 4 additions & 1 deletion trunk/drivers/ide/ide-cd.c
Original file line number Diff line number Diff line change
Expand Up @@ -876,9 +876,12 @@ static int cdrom_read_capacity(ide_drive_t *drive, unsigned long *capacity,
return stat;

/*
* Sanity check the given block size
* Sanity check the given block size, in so far as making
* sure the sectors_per_frame we give to the caller won't
* end up being bogus.
*/
blocklen = be32_to_cpu(capbuf.blocklen);
blocklen = (blocklen >> SECTOR_BITS) << SECTOR_BITS;
switch (blocklen) {
case 512:
case 1024:
Expand Down

0 comments on commit c75d4b4

Please sign in to comment.