K 10 svn:author V 7 git2svn K 8 svn:date V 27 2021-04-27T12:50:45.819527Z K 7 svn:log V 473 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 (cherry picked from commit e49d3eb40324eaffaa13b93f2c4173dfa04dfa34) Git Hash: 95b86ac2272885b4e1b9b3c2f0aafca7ea90fabc Git Author: mav@FreeBSD.org END