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
Kirill Smelkov
linux
Commits
4e6e2877
Commit
4e6e2877
authored
Mar 25, 2004
by
Jens Axboe
Committed by
Linus Torvalds
Mar 25, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] ide-cd capacity fix
Only allow get_last_written() to override get_capacity(), if it is bigger.
parent
62e160b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
drivers/ide/ide-cd.c
drivers/ide/ide-cd.c
+1
-1
No files found.
drivers/ide/ide-cd.c
View file @
4e6e2877
...
@@ -2372,7 +2372,7 @@ static int cdrom_read_toc(ide_drive_t *drive, struct request_sense *sense)
...
@@ -2372,7 +2372,7 @@ static int cdrom_read_toc(ide_drive_t *drive, struct request_sense *sense)
/* Now try to get the total cdrom capacity. */
/* Now try to get the total cdrom capacity. */
stat
=
cdrom_get_last_written
(
cdi
,
&
last_written
);
stat
=
cdrom_get_last_written
(
cdi
,
&
last_written
);
if
(
!
stat
&&
last_written
)
{
if
(
!
stat
&&
(
last_written
>
toc
->
capacity
)
)
{
toc
->
capacity
=
last_written
;
toc
->
capacity
=
last_written
;
set_capacity
(
drive
->
disk
,
toc
->
capacity
*
sectors_per_frame
);
set_capacity
(
drive
->
disk
,
toc
->
capacity
*
sectors_per_frame
);
}
}
...
...
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