Do not zero memory in umass_detach
The detach function is called very often, for example from get_capacity function. We don't want to loose any pointers here, so disable detaching for umass driver. Submitted by: Wojciech Macek <wma@semihalf.com> Obtained from: Semihalf Sponsored by: Juniper Networks Inc. Differential Revision: https://reviews.freebsd.org/D4141
This commit is contained in:
parent
2646d9c030
commit
09a37b41c5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=291401
@ -82,6 +82,9 @@ umass_attach(device_t dev)
|
||||
static int
|
||||
umass_detach(device_t dev)
|
||||
{
|
||||
|
||||
#ifdef USB_DEBUG
|
||||
memset(&umass_uaa, 0, sizeof(umass_uaa));
|
||||
#endif
|
||||
return (0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user