the API more logical.
OK kettenis@ mpi@
-/* $OpenBSD: diskmap.c,v 1.23 2018/08/05 14:23:57 beck Exp $ */
+/* $OpenBSD: diskmap.c,v 1.24 2018/08/20 14:59:02 visa Exp $ */
/*
* Copyright (c) 2009, 2010 Joel Sing <jsing@openbsd.org>
fp->f_data = (caddr_t)vp;
fdinsert(fdp, fd, flags, fp);
fdpunlock(fdp);
- FRELE(fp, p);
closef(fp0, p);
free(devname, M_DEVBUF, PATH_MAX);
-/* $OpenBSD: drm_linux.c,v 1.28 2018/08/15 13:19:06 visa Exp $ */
+/* $OpenBSD: drm_linux.c,v 1.29 2018/08/20 14:59:02 visa Exp $ */
/*
* Copyright (c) 2013 Jonathan Gray <jsg@openbsd.org>
* Copyright (c) 2015, 2016 Mark Kettenis <kettenis@openbsd.org>
dmabuf->size = info->size;
dmabuf->file = fp;
fp->f_data = dmabuf;
- FRELE(fp, p);
return dmabuf;
}
-/* $OpenBSD: kern_descrip.c,v 1.179 2018/08/19 02:22:40 visa Exp $ */
+/* $OpenBSD: kern_descrip.c,v 1.180 2018/08/20 14:59:02 visa Exp $ */
/* $NetBSD: kern_descrip.c,v 1.42 1996/03/30 22:24:38 christos Exp $ */
/*
return (ENFILE);
}
+ FREF(fp);
*resultfp = fp;
*resultfd = i;
fp->f_cred = p->p_ucred;
crhold(fp->f_cred);
- FREF(fp);
-
return (fp);
}