USB: HAL: handling readFile failure on device path

Currently readFile() is called without checking if
the operation succeeded in reading the bInterfaceClass value.

Return from function if readfile fails to populate bInterfaceClass
to avoid doing operation on NULL variables leading usb hal crash.

Change-Id: I7009305fa91541e22b99732620a586742a1b5f0c
1 file changed
tree: b6f64794a218c21453e704510d4f7bc53a41a321
  1. etc/
  2. hal/
  3. vendor_product.mk