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: 8645f8b909b765da637f7f6661ca39e958e929cb
  1. etc/
  2. hal/
  3. vendor_product.mk