File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 88
99## Changed
1010- Changed ordering of ` proto::pci::PciIoAddress ` to (bus -> dev -> fun -> reg -> ext_reg).
11+ - Return request with status as error data object for ` proto::ata::pass_thru::AtaDevice ` .
1112
1213# uefi - v0.36.1 (2025-11-05)
1314
Original file line number Diff line number Diff line change @@ -185,17 +185,21 @@ impl AtaDevice<'_> {
185185 pub fn execute_command < ' req > (
186186 & mut self ,
187187 mut req : AtaRequest < ' req > ,
188- ) -> crate :: Result < AtaResponse < ' req > > {
188+ ) -> crate :: Result < AtaResponse < ' req > , AtaResponse < ' req > > {
189189 req. packet . acb = & req. acb ;
190- unsafe {
190+ let result = unsafe {
191191 ( ( * self . proto . get ( ) ) . pass_thru ) (
192192 self . proto . get ( ) ,
193193 self . port ,
194194 self . pmp ,
195195 & mut req. packet ,
196196 ptr:: null_mut ( ) ,
197197 )
198- . to_result_with_val ( || AtaResponse { req } )
198+ . to_result ( )
199+ } ;
200+ match result {
201+ Ok ( _) => Ok ( AtaResponse { req } ) ,
202+ Err ( s) => Err ( crate :: Error :: new ( s. status ( ) , AtaResponse { req } ) ) ,
199203 }
200204 }
201205}
You can’t perform that action at this time.
0 commit comments