1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Fix dev_close arg.

This commit is contained in:
Alasdair Kergon 2002-01-24 13:31:18 +00:00
parent f552ba4b74
commit 333658d5f8

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;
}