Skip to content
Snippets Groups Projects
Commit e320f0bc authored by Stephen Warren's avatar Stephen Warren Committed by Tom Rini
Browse files

smsc95xx: fix operation on 64-bit systems


smsc95xx_read_reg() should calculate sizeof(*data) not sizeof(data) since
data is a pointer, and the value pointed at is being transferred over USB,
not the value of the pointer. This fixes operation of the driver in 64-bit
builds, such as the Raspberry Pi 3.

Reported-by: default avatarEric Anholt <eric@anholt.net>
Signed-off-by: default avatarStephen Warren <swarren@wwwdotorg.org>
Acked-by: default avatarMarek Vasut <marex@denx.de>
Acked-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
parent f8bb6964
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment