git: nvmm(4): Explicitly handle NULL fp in dfbsd_nvmm_open()
Aaron LI
aly at crater.dragonflybsd.org
Sat Jan 31 05:49:11 PST 2026
commit 09eeabf22cb3399d62e46c4bc684923acf78425c
Author: Aaron LI <aly at aaronly.me>
Date: Wed Jan 28 23:19:38 2026 +0800
nvmm(4): Explicitly handle NULL fp in dfbsd_nvmm_open()
Although devfs_set_cdevpriv() would check fp == NULL and return ENOENT
in that case, explicitly handle it here for clarity. Also, directly
free the allocated 'owner' instead of calling dfbsd_nvmm_dtor().
Summary of changes:
sys/dev/virtual/nvmm/nvmm_dragonfly.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/09eeabf22cb3399d62e46c4bc684923acf78425c
--
DragonFly BSD source repository
More information about the Commits
mailing list