Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207976
b: refs/heads/master
c: 26eca10
h: refs/heads/master
v: v3
  • Loading branch information
Michal Nazarewicz authored and Greg Kroah-Hartman committed Aug 10, 2010
1 parent 9e8bcfe commit 8886ecd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3b759c75febd8f9ce91a05705ec43eb7f4b5ed3d
refs/heads/master: 26eca10e6ef64e15f250523a1e7e94ad40ac2bf8
15 changes: 9 additions & 6 deletions trunk/drivers/usb/gadget/mass_storage.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ static int msg_thread_exits(struct fsg_common *common)

static int __init msg_do_config(struct usb_configuration *c)
{
struct fsg_common *common;
static struct fsg_common common;

struct fsg_common *retp;
struct fsg_config config;
int ret;

Expand All @@ -154,12 +156,13 @@ static int __init msg_do_config(struct usb_configuration *c)

fsg_config_from_params(&config, &mod_data);
config.thread_exits = msg_thread_exits;
common = fsg_common_init(0, c->cdev, &config);
if (IS_ERR(common))
return PTR_ERR(common);

ret = fsg_add(c->cdev, c, common);
fsg_common_put(common);
retp = fsg_common_init(&common, c->cdev, &config);
if (IS_ERR(retp))
return PTR_ERR(retp);

ret = fsg_add(c->cdev, c, &common);
fsg_common_put(&common);
return ret;
}

Expand Down

0 comments on commit 8886ecd

Please sign in to comment.