Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 31904
b: refs/heads/master
c: 8d55a78
h: refs/heads/master
v: v3
  • Loading branch information
Alan Cox authored and James Bottomley committed Jun 26, 2006
1 parent 5dc2bc3 commit 843788a
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: 3e7196cf6070821ff8246b15dfd219ffa6409062
refs/heads/master: 8d55a786febd077f3a0db9f0672dfa1288b452af
3 changes: 2 additions & 1 deletion trunk/drivers/scsi/scsicam.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ EXPORT_SYMBOL(scsi_bios_ptable);
int scsicam_bios_param(struct block_device *bdev, sector_t capacity, int *ip)
{
unsigned char *p;
u64 capacity64 = capacity; /* Suppress gcc warning */
int ret;

p = scsi_bios_ptable(bdev);
Expand All @@ -68,7 +69,7 @@ int scsicam_bios_param(struct block_device *bdev, sector_t capacity, int *ip)
(unsigned int *)ip + 0, (unsigned int *)ip + 1);
kfree(p);

if (ret == -1) {
if (ret == -1 && capacity64 < (1ULL << 32)) {
/* pick some standard mapping with at most 1024 cylinders,
and at most 62 sectors per track - this works up to
7905 MB */
Expand Down

0 comments on commit 843788a

Please sign in to comment.