]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: ums: add error handling for failed registration
authorStephen Warren <swarren@nvidia.com>
Thu, 1 May 2014 21:42:10 +0000 (15:42 -0600)
committerLukasz Majewski <l.majewski@samsung.com>
Thu, 8 May 2014 08:38:29 +0000 (10:38 +0200)
commit66b88b07cdab041ac0cf6a9bf5b131aedc248089
tree374be3ccb4240ef80f93edff6a86f44e0c8cdb4f
parent340ed422d2a58c4858ba8e110c233e8ae92c04e0
usb: ums: add error handling for failed registration

Without this, if g_dnl_register() fails, the UMS code continues on
blindly and crashes. This fix makes it simply print an error message
instead.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
common/cmd_usb_mass_storage.c