Android CTS 7.0 Release 18 (4581285)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCWoSxwQAKCRDorT+BmrEO
eDNiAJ4xc9VFFwE2lOl/uuIQH1ND5hKCSwCeLp7qNIxmzYLyGd/WTTjpKr0KFT0=
=5faP
-----END PGP SIGNATURE-----
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
1 file changed