Skip to content
Snippets Groups Projects
Commit f6570871 authored by Sergey Temerkhanov's avatar Sergey Temerkhanov Committed by Marek Vasut
Browse files

usb_storage:Fix USB storage capacity detection on 64 bit architectures


This patch fixes USB storage capacity detection breakage on 64-bit systems
which arises due to 'unsigned long' length difference. Old code assumes that
to be 32 bit and breaks because of inappropriate response buffer layout.
Also this fixes a number of build warnings and changes big-endian values
treatment style to be architecture-independent

Signed-off-by: default avatarSergey Temerkhanov <s.temerkhanov@gmail.com>
Signed-off-by: default avatarRadha Mohan Chintakuntla <rchintakuntla@cavium.com>
parent 421a5a0c
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment