commit | 0697f206dfbbb5821fbf03283dce0b96515167cf | [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 | f4dacf7b95e9f7d4246db00facdbe366b5c30a5a [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>