1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-23 07:31:31 +00:00
freebsd/lib/libdevdctl
Alexander Motin e49d3eb403 Fix race in case of device destruction.
During device destruction it is possible that open() succeed, but
fdevname() return NULL, that can't be assigned to string variable.
Fix that by adding explicit NULL check.

Also while there switch from fdevname() to fdevname_r().

Sponsored by:	iXsystems, Inc.
MFC after:	2 weeks
2021-04-13 11:25:27 -04:00
..
tests
consumer.cc
consumer.h
event_factory.cc
event_factory.h
event.cc Fix race in case of device destruction. 2021-04-13 11:25:27 -04:00
event.h
exception.cc
exception.h
guid.cc
guid.h
Makefile
Makefile.depend