mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-04 09:09:56 +00:00
Fix region code reporting.
Reported by: Andrew Gordon <arg@arg1.demon.co.uk>
This commit is contained in:
parent
8e8cae2b0c
commit
0212e4b63b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=71752
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 1997 Justin T. Gibbs.
|
||||
* Copyright (c) 1997, 1998, 1999, 2000 Kenneth D. Merry.
|
||||
* Copyright (c) 1997, 1998, 1999, 2000, 2001 Kenneth D. Merry.
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@ -3218,6 +3218,8 @@ cdreportkey(struct cam_periph *periph, struct dvd_authinfo *authinfo)
|
||||
(rpc_data->byte4 & RKD_RPC_VENDOR_RESET_MASK) >>
|
||||
RKD_RPC_VENDOR_RESET_SHIFT;
|
||||
authinfo->user_rsts = rpc_data->byte4 & RKD_RPC_USER_RESET_MASK;
|
||||
authinfo->region = rpc_data->region_mask;
|
||||
authinfo->rpc_scheme = rpc_data->rpc_scheme1;
|
||||
break;
|
||||
}
|
||||
case DVD_INVALIDATE_AGID:
|
||||
@ -3297,9 +3299,6 @@ cdsendkey(struct cam_periph *periph, struct dvd_authinfo *authinfo)
|
||||
scsi_ulto2b(length - sizeof(rpc_data->data_len),
|
||||
rpc_data->data_len);
|
||||
|
||||
/*
|
||||
* XXX KDM is this the right field from authinfo to use?
|
||||
*/
|
||||
rpc_data->region_code = authinfo->region;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user