diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index a6999fa039ca..ee61c146d9a8 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -1,4 +1,4 @@ -/* $NetBSD: kern_descrip.c,v 1.248 2020/08/28 06:47:18 riastradh Exp $ */ +/* $NetBSD: kern_descrip.c,v 1.249 2020/08/28 10:20:14 christos Exp $ */ /*- * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc. @@ -70,7 +70,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: kern_descrip.c,v 1.248 2020/08/28 06:47:18 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_descrip.c,v 1.249 2020/08/28 10:20:14 christos Exp $"); #include #include @@ -2309,7 +2309,6 @@ fill_file(struct file *fp, const struct file *fpsrc) COND_SET_CPTR(fp->f_ops, fpsrc->f_ops, allowaddr); COND_SET_STRUCT(fp->f_undata, fpsrc->f_undata, allowaddr); COND_SET_STRUCT(fp->f_list, fpsrc->f_list, allowaddr); - memset(&fp->f_lock, 0, sizeof(fp->f_lock)); fp->f_flag = fpsrc->f_flag; fp->f_marker = fpsrc->f_marker; fp->f_type = fpsrc->f_type;