chiark / gitweb /
udev: free fd before return in scsi_serial.c
authorLukas Nykryn <lnykryn@redhat.com>
Fri, 21 Sep 2012 11:01:29 +0000 (13:01 +0200)
committerKay Sievers <kay@vrfy.org>
Sun, 23 Sep 2012 12:24:43 +0000 (14:24 +0200)
src/udev/scsi_id/scsi_serial.c

index 5ad0c31..3c52dee 100644 (file)
@@ -921,7 +921,8 @@ int scsi_get_serial(struct udev *udev,
                 }
         } else if (page_code != 0x00) {
                 log_debug("%s: unsupported page code 0x%d\n", dev_scsi->kernel, page_code);
                 }
         } else if (page_code != 0x00) {
                 log_debug("%s: unsupported page code 0x%d\n", dev_scsi->kernel, page_code);
-                return 1;
+                retval = 1;
+                goto completed;
         }
 
         /*
         }
 
         /*