commit | 40eb2d785d3e367c01fc2a3d53820550e7f66739 | [log] [tgz] |
---|---|---|
author | Andrew Duggan <aduggan@synaptics.com> | Fri Oct 16 12:33:29 2015 -0700 |
committer | Benson Leung <bleung@google.com> | Fri Oct 16 14:51:47 2015 -0700 |
tree | 47a4f210c7d99ff7d88c3a8032911a92a3969343 | |
parent | ddfbb28f7e7f4917a8970080f7990335a977686c [diff] |
UPSTREAM: rmi4update: Make sure the device file exists when rebinding the driver The /dev/hidrawX device may not exist immediately after writing to the bind file. This change checks to see if it exists before attempting to reopen the device. (cherry picked from commit 8336b9c19bbf2adad93a4e193cd9258cf3fc7d0d) Signed-off-by: Benson Leung <bleung@google.com> Bug: 24809436 Change-Id: I02a662a2fc38e93df32190c03f35a1db3640f451