diff options
| author | Peter Korsgaard <[email protected]> | 2010-03-12 14:55:28 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2010-03-19 14:24:20 +0000 |
| commit | f479d70b4f7674083c2e3c3e603b15811713fb18 (patch) | |
| tree | 8d42b82cddf3e3304f5ae955294e990af7f3aebf /lib/debugobjects.c | |
| parent | USB: g_mass_storage: fix section mismatch warnings (diff) | |
| download | kernel-f479d70b4f7674083c2e3c3e603b15811713fb18.tar.gz kernel-f479d70b4f7674083c2e3c3e603b15811713fb18.zip | |
USB: gadget: f_mass_storage::fsg_bind(): fix error handling
Contrary to the comment in fsg_add, fsg_bind calls fsg_unbind on errors,
which decreases refcount and frees the fsg_dev structure, causing trouble
when fsg_add does the same.
Fix it by simply leaving up cleanup to fsg_add().
Signed-off-by: Peter Korsgaard <[email protected]>
Acked-by: Michal Nazarewicz <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
