commit | 3dab73020e26c91d2e3fb95c4d6ae92d67dd5995 | [log] [tgz] |
---|---|---|
author | Przemyslaw Marczak <p.marczak@samsung.com> | Wed Oct 23 14:30:44 2013 +0200 |
committer | Marek Vasut <marex@denx.de> | Fri Nov 08 20:46:19 2013 +0100 |
tree | 44d1700294f8d9f53243fbf60786f541020adfaa | |
parent | 0e1e70959d169556c18cae25bff37e0612a03c9e [diff] |
usb: ums: fix disk capacity miscalculation and code cleanup This patch prevents: - ums disk capacity miscalculation because of integer overflow Changes v2: - Prevents passing zero size disk capacity to ums gadget driver - Change function ums_get_capacity() to ums_disk_init() and do ums disk initialization before gadget init - Remove unnecessary code from mass storage driver Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com> Cc: Marek Vasut <marex@denx.de>