diff options
author | 2011-02-11 01:10:44 -0800 | |
---|---|---|
committer | 2011-02-21 01:02:28 -0800 | |
commit | 5d9d6e91b835796c21fbd7ce479880e5181be112 (patch) | |
tree | d7881c56527eb833a33d32899a4f879d51a2a6c9 /drivers/hid/hid-input.c | |
parent | Input: atmel_mxt_ts - read whole message to make CHG low (diff) | |
download | linux-dev-5d9d6e91b835796c21fbd7ce479880e5181be112.tar.xz linux-dev-5d9d6e91b835796c21fbd7ce479880e5181be112.zip |
Input: uinput - fix setting up device name
The check for non-empty device name was botched since we tried to account
for extra space for the terminating zero at the same time. Convert to
kstrndup() to avoid this problem.
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Acked-by: Aristeu Rozanski <aris@ruivo.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/hid/hid-input.c')
0 files changed, 0 insertions, 0 deletions