1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-02-28 05:57:49 +03:00

Fix dev_close arg.

This commit is contained in:
Alasdair Kergon 2002-01-24 13:31:18 +00:00
parent 25c79a4fcd
commit 482d50536a

View File

@ -84,7 +84,7 @@ int dev_open(struct device *dev, int flags)
if ((fstat(dev->fd, &buf) < 0) || (buf.st_rdev != dev->dev)) {
log_error("%s: fstat failed: Has device name changed?", name);
dev_close(dev->fd);
dev_close(dev);
return 0;
}