Replace wrong structure type in mmc_ioctl() in cdrom.c
Quoted 5 lines · Richard Pries
Jens,
Please consider the following patch for the wrong type of structure in
mmc_ioctl()incdrom.c.
Quoted 8 lines
Currently,
mmc_ioctl()incdrom.cis passed acdrom_msfstructure whenioctl()is called with CDROMREADRAW, CDROMREADMODE1, or CDROMREADMODE2 as its second argument. This structure does not provide the required buffer for reading the data, and it does not correspond to the structure thatcdrom.hsays to use with theseioctl()calls. This patch replaces thecdrom_msfstructure with acdrom_readstructure (as specified incdrom.h). Preliminary tests indicate that this patch works for both IDE and SCSI drives.
Sure I bet it works, but you just broke all the programs that currently use any of the above ioctls. I've known about this for years... You can do all that you want with cdrom_msf, it's just more hassle. For 2.5 I'll introduce newer variants of the above ioctls and keep them as-is for compatability, tossing them out is not an option.
I will take a patch that corrects the comment though!
Signature · 6 lines
* Jens Axboe <[email protected]> * SuSE Labs - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] Please read the FAQ at http://www.tux.org/lkml/