diff options
author | David Xu <davidxu@FreeBSD.org> | 2012-12-26 13:07:17 +0000 |
---|---|---|
committer | David Xu <davidxu@FreeBSD.org> | 2012-12-26 13:07:17 +0000 |
commit | fee3029ce715da163705fc748aa42635858e07ce (patch) | |
tree | 8c164ac7c4972935789600c64effb2d4478018df | |
parent | 322f22f7b5c02c5a4631f8c4487c02e73f2c6994 (diff) |
Notes
-rw-r--r-- | sys/dev/pci/pci_user.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/pci/pci_user.c b/sys/dev/pci/pci_user.c index b8756a62d7ba..a5b58c3853b4 100644 --- a/sys/dev/pci/pci_user.c +++ b/sys/dev/pci/pci_user.c @@ -425,12 +425,12 @@ pci_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, struct thread *t #ifdef COMPAT_FREEBSD32 struct pci_conf_io32 *cio32 = NULL; struct pci_conf_old32 conf_old32; - struct pci_match_conf_old32 *pattern_buf_old32; + struct pci_match_conf_old32 *pattern_buf_old32 = NULL; #endif struct pci_conf_old conf_old; struct pci_io iodata; struct pci_io_old *io_old; - struct pci_match_conf_old *pattern_buf_old; + struct pci_match_conf_old *pattern_buf_old = NULL; io_old = NULL; @@ -470,10 +470,8 @@ pci_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, struct thread *t #ifdef PRE7_COMPAT #ifdef COMPAT_FREEBSD32 case PCIOCGETCONF_OLD32: - pattern_buf_old32 = NULL; #endif case PCIOCGETCONF_OLD: - pattern_buf_old = NULL; #endif case PCIOCGETCONF: |