Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 316252 Details for
Bug 457027
ide-cd: fix oops when using growisofs [mrg-1]
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch for MRG 2.6.24.7-79
bz457027--ide-cd-fix_oops_when_using_growisofs_mrg_2.patch (text/plain), 2.21 KB, created by
Luis Claudio R. Goncalves
on 2008-09-09 20:15:08 UTC
(
hide
)
Description:
Patch for MRG 2.6.24.7-79
Filename:
MIME Type:
Creator:
Luis Claudio R. Goncalves
Created:
2008-09-09 20:15:08 UTC
Size:
2.21 KB
patch
obsolete
>Adapted to MRG > >| commit 938bb03d188a1e688fb0bcae49788f540193e80a >| Author: Petr Tesarik <ptesarik@suse.cz> >| Date: Tue Aug 5 18:17:02 2008 +0200 >| >| ide-cd: fix endianity for the error message in cdrom_read_capacity >| >| Aesthetic regards aside, commit e8e7b9eb11c34ee18bde8b7011af41938d1ad667 >| still leaves a bug in the error message, because it uses the unconverted >| big-endian value for printk. >| >| Fix this by using a local variable in machine byte order. The result is >| correct, more readable, and also produces slightly shorter code on i386. >| >| Signed-off-by: Petr Tesarik <ptesarik@suse.cz> >| Cc: Jens Axboe <jens.axboe@oracle.com> >| Cc: Jan Kara <jack@suse.cz> >| Cc: Andrew Morton <akpm@linux-foundation.org> >| Cc: <stable@kernel.org> >| Acked-by: Borislav Petkov <petkovbb@gmail.com> >| [bart: __u32 -> u32] >| Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> > >Signed-off-by: Luis Claudio R. Goncalves <lgoncalv@redhat.com> > >--- >diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c >index d7c01b7..697225c 100644 >--- a/drivers/ide/ide-cd.c >+++ b/drivers/ide/ide-cd.c >@@ -2196,6 +2196,7 @@ static int cdrom_read_capacity(ide_drive_t *drive, unsigned long *capacity, > > int stat; > struct request req; >+ u32 blocklen; > > cdrom_prepare_request(drive, &req); > >@@ -2212,23 +2213,24 @@ static int cdrom_read_capacity(ide_drive_t *drive, unsigned long *capacity, > /* > * Sanity check the given block size > */ >- switch (capbuf.blocklen) { >- case __constant_cpu_to_be32(512): >- case __constant_cpu_to_be32(1024): >- case __constant_cpu_to_be32(2048): >- case __constant_cpu_to_be32(4096): >+ blocklen = be32_to_cpu(capbuf.blocklen); >+ switch (blocklen) { >+ case 512: >+ case 1024: >+ case 2048: >+ case 4096: > break; > default: > printk(KERN_ERR "%s: weird block size %u\n", >- drive->name, capbuf.blocklen); >+ drive->name, blocklen); > printk(KERN_ERR "%s: default to 2kb block size\n", > drive->name); >- capbuf.blocklen = __constant_cpu_to_be32(2048); >+ blocklen = 2048; > break; > } > > *capacity = 1 + be32_to_cpu(capbuf.lba); >- *sectors_per_frame = be32_to_cpu(capbuf.blocklen) >> SECTOR_BITS; >+ *sectors_per_frame = blocklen >> SECTOR_BITS; > return 0; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 457027
: 316252