diff options
author | Rob Herring <[email protected]> | 2012-08-15 16:28:38 +0100 |
---|---|---|
committer | Russell King <[email protected]> | 2012-08-25 09:22:31 +0100 |
commit | e780c452cfea10cbfae1c96dc16e506758138b6f (patch) | |
tree | e39438a58c1c72cb9b6b71924b5d9c26d91cbd0f /lib/string_helpers.c | |
parent | d25c881aa3aeea447d0511e391a06c56783d173c (diff) |
ARM: 7494/1: use generic termios.h
As pointed out by Arnd Bergmann, this fixes a couple of issues but will
increase code size:
The original macro user_termio_to_kernel_termios was not endian safe. It
used an unsigned short ptr to access the low bits in a 32-bit word.
Both user_termio_to_kernel_termios and kernel_termios_to_user_termio are
missing error checking on put_user/get_user and copy_to/from_user.
Signed-off-by: Rob Herring <[email protected]>
Reviewed-by: Nicolas Pitre <[email protected]>
Tested-by: Thomas Petazzoni <[email protected]>
Reviewed-by: Arnd Bergmann <[email protected]>
Signed-off-by: Russell King <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions