diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2010-12-20 09:16:08 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-01-08 13:09:53 +0100 |
commit | a5734b08bd99268fb404a0561016e40531f130fd (patch) | |
tree | 4565801b25727e02c092ed35a3de268c2bfc15de /fs | |
parent | 8a97bb978cc389e1438ec6dd176db56560089f26 (diff) | |
download | barebox-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |