summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2010-12-20 09:16:08 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2011-01-08 13:09:53 +0100
commita5734b08bd99268fb404a0561016e40531f130fd (patch)
tree4565801b25727e02c092ed35a3de268c2bfc15de /fs
parent8a97bb978cc389e1438ec6dd176db56560089f26 (diff)
downloadbarebox-a5734b08bd99268fb404a0561016e40531f130fd.tar.gz
barebox-a5734b08bd99268fb404a0561016e40531f130fd.tar.xz
fs: fix multiple mount of the same fstype
We need to assign a new device id if we want to register a fs with the same type of an already registered fstype. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs')
-rw-r--r--fs/fs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/fs.c b/fs/fs.c
index 7d8dea7de6..2f619295a9 100644
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -765,6 +765,7 @@ int mount(const char *device, const char *fsname, const char *_path)
}
sprintf(fsdev->dev.name, "%s", fsname);
fsdev->dev.type_data = fsdev;
+ fsdev->dev.id = get_free_deviceid(fsdev->dev.name);
if ((ret = register_device(&fsdev->dev))) {
free(fsdev);