RE: [PATCH 2/2] HID: hid-sensor-hub: Fix sensor_hub_probe error handling

2012-09-13 Thread Pandruvada, Srinivas
: hid-sensor-hub: Fix sensor_hub_probe error handling Fix below issues in sensor_hub_probe error handling: 1. In the case of goto err_close, hid_hw_stop(hdev) is called twice. Fix it. 2. If fails to allocate MFD device name, we also need to free all successfully allocated names in previous

[PATCH 2/2] HID: hid-sensor-hub: Fix sensor_hub_probe error handling

2012-09-12 Thread Axel Lin
Fix below issues in sensor_hub_probe error handling: 1. In the case of goto err_close, hid_hw_stop(hdev) is called twice. Fix it. 2. If fails to allocate MFD device name, we also need to free all successfully allocated names in previous iterations. Signed-off-by: Axel Lin --- drivers/hid/hid-