aboutsummaryrefslogtreecommitdiff
path: root/scripts/basic
diff options
context:
space:
mode:
authorMichal Nazarewicz <[email protected]>2010-05-12 12:51:13 +0200
committerGreg Kroah-Hartman <[email protected]>2010-05-20 13:21:45 -0700
commitb9e000884e50bf6b25a92a3f3580e1d14fe01591 (patch)
tree05188e049219fed1cacc50f09e1d62a296d95bbe /scripts/basic
parentf537da685c35a81a75f6067751bddb902c8adb68 (diff)
USB: gadget: f_mass_storage: fix in error recovery
In to places in fsg_common_init() an unconditional call to kfree() on common was performed in error recovery which is not a valid behaviour since fsg_common structure is not always allocated by fsg_common_init(). To fix, the calls has been replaced with a goto to a proper error recovery which does the correct thing. Also, refactored fsg_common_release() function. Signed-off-by: Michal Nazarewicz <[email protected]> Reviewed-by: Viral Mehta <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions