summaryrefslogtreecommitdiff
path: root/src/udev
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2012-09-21 13:01:29 +0200
committerKay Sievers <kay@vrfy.org>2012-09-23 14:24:43 +0200
commitab261e1226efac3d47b2dc4a0e0165aeb8bb528e (patch)
treea7f2904761927e1d788aec410c6de259275ac1a6 /src/udev
parent0820a4f0f6d6c264339a501a4352c22af26c5300 (diff)
udev: free fd before return in scsi_serial.c
Diffstat (limited to 'src/udev')
-rw-r--r--src/udev/scsi_id/scsi_serial.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/udev/scsi_id/scsi_serial.c b/src/udev/scsi_id/scsi_serial.c
index 5ad0c3135e..3c52dee62d 100644
--- a/src/udev/scsi_id/scsi_serial.c
+++ b/src/udev/scsi_id/scsi_serial.c
@@ -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);
- return 1;
+ retval = 1;
+ goto completed;
}
/*