From 333658d5f8eb8237d2b2cd4872b55fd536f70841 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Thu, 24 Jan 2002 13:31:18 +0000 Subject: [PATCH] Fix dev_close arg. --- lib/device/dev-io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/device/dev-io.c b/lib/device/dev-io.c index dece35c67..8e1995c43 100644 --- a/lib/device/dev-io.c +++ b/lib/device/dev-io.c @@ -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; }