kernel - Fix bug in last commit to sys_generic.c
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 10 Jan 2014 03:33:20 +0000 (19:33 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 10 Jan 2014 03:33:20 +0000 (19:33 -0800)
* memp can be uninitialized if the goto done occurs.

sys/kern/sys_generic.c

index 1b94254..d384589 100644 (file)
@@ -584,6 +584,7 @@ mapped_ioctl(int fd, u_long com, caddr_t uspc_data, struct ioctl_map *map,
 
        KKASSERT(p);
        cred = td->td_ucred;
+       memp = NULL;
 
        fp = holdfp(p->p_fd, fd, FREAD|FWRITE);
        if (fp == NULL)