mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 12:28:58 +00:00
I forget the fact that cd_read_toc reads toc header in any case
This commit is contained in:
parent
fd04d24d6b
commit
b03135a62b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=13860
@ -14,7 +14,7 @@
|
|||||||
*
|
*
|
||||||
* Ported to run under 386BSD by Julian Elischer (julian@tfs.com) Sept 1992
|
* Ported to run under 386BSD by Julian Elischer (julian@tfs.com) Sept 1992
|
||||||
*
|
*
|
||||||
* $Id: cd.c,v 1.62 1996/02/01 16:22:58 ache Exp $
|
* $Id: cd.c,v 1.63 1996/02/01 17:35:15 ache Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "opt_bounce.h"
|
#include "opt_bounce.h"
|
||||||
@ -818,8 +818,8 @@ cd_ioctl(dev_t dev, int cmd, caddr_t addr, int flag, struct proc *p,
|
|||||||
|
|
||||||
error = cd_read_toc(unit, te->address_format,
|
error = cd_read_toc(unit, te->address_format,
|
||||||
readtrack,
|
readtrack,
|
||||||
data.entries,
|
(struct cd_toc_entry *)&data,
|
||||||
readlen);
|
readlen + sizeof (*th));
|
||||||
if (error)
|
if (error)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user