mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
- Fix NULL pointer access in an error branch inside hub_clear_port_feature_completion(). Thanks to Christoph for testing.
svn path=/trunk/; revision=41415
This commit is contained in:
@@ -762,10 +762,15 @@ hub_clear_port_feature_completion(PURB purb, PVOID context)
|
||||
//
|
||||
// do not think the device is workable, no requests to it any more.
|
||||
// including the int polling
|
||||
//
|
||||
// usb_free_mem( purb );
|
||||
//
|
||||
goto LBL_SCAN_PORT_STAT;
|
||||
|
||||
if (purb)
|
||||
usb_free_mem(purb);
|
||||
|
||||
if (port_idx)
|
||||
hub_check_reset_port_status(pdev, port_idx);
|
||||
|
||||
//reinitialize the int request, here to reduce some uncertainty of concurrency
|
||||
hub_start_int_request(pdev);
|
||||
}
|
||||
}
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user