Parent: 6f51c94e273aadadf9dad1acf795ec0a0b39e38c
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2014-02-24 18:02:11
Tree: 476c099d55c63d4f7948f817d54bb993e61590a3
android/avctp: Fix failing silently if uinput is not initialized This adds a check for uinput before attempting to use send_key and if it is not initialized response with AVC_CTYPE_NOT_IMPLEMENTED which is the same code used when a unkown key is received.
Diffstat
| M | android/avctp.c | | | 9 | ++++++- - - |
1 files changed, 6 insertions(+), 3 deletions(-)