Author: hrs
Date: Fri Oct  3 04:13:25 2014
New Revision: 272468
URL: https://svnweb.freebsd.org/changeset/base/272468

Log:
  Fix a bug in r272297 which prevented dumpdev from setting.
  !u is not equivalent to (u != 0).

Modified:
  head/sys/geom/geom_dev.c

Modified: head/sys/geom/geom_dev.c
==============================================================================
--- head/sys/geom/geom_dev.c    Fri Oct  3 02:24:41 2014        (r272467)
+++ head/sys/geom/geom_dev.c    Fri Oct  3 04:13:25 2014        (r272468)
@@ -395,7 +395,7 @@ g_dev_ioctl(struct cdev *dev, u_long cmd
                error = g_io_getattr("GEOM::frontstuff", cp, &i, data);
                break;
        case DIOCSKERNELDUMP:
-               if (*(u_int *)data != 0) {
+               if (*(u_int *)data == 0) {
                        error = set_dumper(NULL, NULL);
                        break;
                }
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to