diff -ruN pciutils-3.1.1/ChangeLog pciutils-3.1.2/ChangeLog
--- pciutils-3.1.1/ChangeLog	2009-01-30 14:23:59.000000000 +0100
+++ pciutils-3.1.2/ChangeLog	2009-02-01 17:49:02.000000000 +0100
@@ -1,3 +1,9 @@
+2009-02-01  Martin Mares <mj@ucw.cz>
+
+	* Released as 3.1.2.
+
+	* Fixed another silly bug in the command-line parser of setpci.
+
 2009-01-30  Martin Mares <mj@ucw.cz>
 
 	* Released as 3.1.1.
diff -ruN pciutils-3.1.1/Makefile pciutils-3.1.2/Makefile
--- pciutils-3.1.1/Makefile	2009-01-30 14:24:07.000000000 +0100
+++ pciutils-3.1.2/Makefile	2009-02-01 17:49:22.000000000 +0100
@@ -4,8 +4,8 @@
 OPT=-O2
 CFLAGS=$(OPT) -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes
 
-VERSION=3.1.1
-DATE=2009-01-30
+VERSION=3.1.2
+DATE=2009-02-01
 
 # Host OS and release (override if you are cross-compiling)
 HOST=
diff -ruN pciutils-3.1.1/README pciutils-3.1.2/README
--- pciutils-3.1.1/README	2009-01-30 14:26:00.000000000 +0100
+++ pciutils-3.1.2/README	2009-02-01 17:50:51.000000000 +0100
@@ -1,4 +1,4 @@
-This package contains the PCI Utilities, version 3.1.1.
+This package contains the PCI Utilities, version 3.1.2.
 
 Copyright (c) 1997--2009 Martin Mares <mj@ucw.cz>
 
diff -ruN pciutils-3.1.1/pciutils.lsm pciutils-3.1.2/pciutils.lsm
--- pciutils-3.1.1/pciutils.lsm	2009-01-30 14:26:00.000000000 +0100
+++ pciutils-3.1.2/pciutils.lsm	2009-02-01 17:50:51.000000000 +0100
@@ -1,14 +1,14 @@
 Begin3
 Title:          The PCI Utilities
-Version:        3.1.1
-Entered-date:   090130
+Version:        3.1.2
+Entered-date:   090201
 Description:    This package contains various utilities for inspecting and
 		setting of devices connected to the PCI bus.
 Keywords:       kernel, pci, lspci, setpci, libpci
 Author:         mj@ucw.cz (Martin Mares)
 Maintained-by:  mj@ucw.cz (Martin Mares)
-Primary-site:   atrey.karlin.mff.cuni.cz pub/linux/pci/pciutils-3.1.1.tar.gz
-Alternate-site: ftp.kernel.org pub/software/utils/pciutils/pciutils-3.1.1.tar.gz
-Alternate-site: metalab.unc.edu pub/Linux/hardware/pciutils-3.1.1.tar.gz
+Primary-site:   atrey.karlin.mff.cuni.cz pub/linux/pci/pciutils-3.1.2.tar.gz
+Alternate-site: ftp.kernel.org pub/software/utils/pciutils/pciutils-3.1.2.tar.gz
+Alternate-site: metalab.unc.edu pub/Linux/hardware/pciutils-3.1.2.tar.gz
 Copying-policy: GPL
 End
diff -ruN pciutils-3.1.1/pciutils.spec pciutils-3.1.2/pciutils.spec
--- pciutils-3.1.1/pciutils.spec	2009-01-30 14:26:00.000000000 +0100
+++ pciutils-3.1.2/pciutils.spec	2009-02-01 17:50:51.000000000 +0100
@@ -1,5 +1,5 @@
 Name:		pciutils
-Version:	3.1.1
+Version:	3.1.2
 Release: 	1
 Source:		ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/%{name}-%{version}.tar.gz
 Copyright:	GNU GPL
diff -ruN pciutils-3.1.1/setpci.c pciutils-3.1.2/setpci.c
--- pciutils-3.1.1/setpci.c	2009-01-30 14:03:25.000000000 +0100
+++ pciutils-3.1.2/setpci.c	2009-02-01 15:51:25.000000000 +0100
@@ -499,7 +499,11 @@
       return 0;
     }
   else
-    return 1;
+    {
+      if (stopp)
+	*stopp = NULL;
+      return 1;
+    }
 }
 
 static void parse_register(struct op *op, char *base)
diff -ruN pciutils-3.1.1/win32/config.h pciutils-3.1.2/win32/config.h
--- pciutils-3.1.1/win32/config.h	2009-01-30 14:26:00.000000000 +0100
+++ pciutils-3.1.2/win32/config.h	2009-02-01 17:50:51.000000000 +0100
@@ -3,4 +3,4 @@
 #define PCI_HAVE_PM_INTEL_CONF
 #define PCI_IDS "pci.ids"
 #define PCI_PATH_IDS_DIR "."
-#define PCILIB_VERSION "3.1.1"
+#define PCILIB_VERSION "3.1.2"
