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