diff options
| author | Mark Einon <mark.einon@gmail.com> | 2013-01-22 14:29:47 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-22 08:58:44 -0800 |
| commit | c8b0a484ccf408cafa9e2ec6a2fad6701c8deec4 (patch) | |
| tree | e05d005d84f92c2fbe179bf2e1bb0883f80ca21e /tools/perf/scripts | |
| parent | c095454e4b6acc8a5e7908647ec60d6088be90c8 (diff) | |
staging: et131x: Fix endian bugs in et131x_get_regs()
et131x_get_regs() calls et131x_mii_read(), passing the address of a u32
which is cast to a (u16 *). This works fine for little endian systems,
but not for big endian. Change so that the types are cast, not pointers
to the types.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions
