Loading drivers/base/devtmpfs.c +5 −2 Original line number Original line Diff line number Diff line Loading @@ -101,8 +101,10 @@ static int create_path(const char *nodepath) /* parent directories do not exist, create them */ /* parent directories do not exist, create them */ path = kstrdup(nodepath, GFP_KERNEL); path = kstrdup(nodepath, GFP_KERNEL); if (!path) if (!path) { return -ENOMEM; err = -ENOMEM; goto out; } s = path; s = path; for (;;) { for (;;) { s = strchr(s, '/'); s = strchr(s, '/'); Loading @@ -117,6 +119,7 @@ static int create_path(const char *nodepath) } } kfree(path); kfree(path); } } out: mutex_unlock(&dirlock); mutex_unlock(&dirlock); return err; return err; } } Loading Loading
drivers/base/devtmpfs.c +5 −2 Original line number Original line Diff line number Diff line Loading @@ -101,8 +101,10 @@ static int create_path(const char *nodepath) /* parent directories do not exist, create them */ /* parent directories do not exist, create them */ path = kstrdup(nodepath, GFP_KERNEL); path = kstrdup(nodepath, GFP_KERNEL); if (!path) if (!path) { return -ENOMEM; err = -ENOMEM; goto out; } s = path; s = path; for (;;) { for (;;) { s = strchr(s, '/'); s = strchr(s, '/'); Loading @@ -117,6 +119,7 @@ static int create_path(const char *nodepath) } } kfree(path); kfree(path); } } out: mutex_unlock(&dirlock); mutex_unlock(&dirlock); return err; return err; } } Loading