Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
db7aff0b
Commit
db7aff0b
authored
Oct 25, 2002
by
James Bottomley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH scsi] use sector_div in scsicam.c
Thanks to Patrick Mansfield for pointing this out.
parent
496a57cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
drivers/scsi/scsicam.c
drivers/scsi/scsicam.c
+2
-2
No files found.
drivers/scsi/scsicam.c
View file @
db7aff0b
...
...
@@ -80,11 +80,11 @@ int scsicam_bios_param(struct block_device *bdev, sector_t capacity, int *ip)
if
(
ret
||
ip
[
0
]
>
255
||
ip
[
1
]
>
63
)
{
ip
[
0
]
=
64
;
ip
[
1
]
=
32
;
if
(
(
capacity
/
(
ip
[
0
]
*
ip
[
1
])
)
>
65534
)
{
if
(
sector_div
(
capacity
,
ip
[
0
]
*
ip
[
1
]
)
>
65534
)
{
ip
[
0
]
=
255
;
ip
[
1
]
=
63
;
}
ip
[
2
]
=
capacity
/
(
ip
[
0
]
*
ip
[
1
]);
ip
[
2
]
=
sector_div
(
capacity
,
ip
[
0
]
*
ip
[
1
]);
}
return
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment