--- sg3-utils-1.29/src/sg_verify.c	2010-04-13 10:12:33.000000000 +0200
+++ src/src/sg_verify.c	2013-06-13 18:32:28.542188340 +0200
@@ -187,6 +187,7 @@
         return SG_LIB_FILE_ERROR;
     }
 
+    int nr_bad = 0;
     for (; count > 0; count -= bpc, lba +=bpc) {
         num = (count > bpc) ? bpc : count;
         res = sg_ll_verify10(sg_fd, vrprotect, dpo, bytechk,
@@ -224,7 +225,8 @@
                         " [0x%" PRIx64 "]\n", lba, lba);
                 break;
             }
-            break;
+	    ++nr_bad;
+            /* break; */
         }
     }
 
@@ -233,6 +235,10 @@
                 "lba %" PRIu64 " [0x%" PRIx64 "]\n    without error\n",
                 orig_count, (uint64_t)orig_count, orig_lba, orig_lba);
 
+    if (nr_bad) {
+	    ret = 1;
+    }
+
     res = sg_cmds_close_device(sg_fd);
     if (res < 0) {
         fprintf(stderr, "close error: %s\n", safe_strerror(-res));
