FW: [PATCH] hidraw: close underlying device at removal of lastreader

From: Manoj Chourasia
Date: Tue Oct 01 2013 - 09:36:02 EST


Hi Jiri,

Mika Westerberg mika.westerberg@xxxxxxxxxxxxxxx reported a bug introduced in hid driver after
commit 212a871a393 (HID: hidraw: correctly deallocate memory on device disconnect)
that hidraw doesn't close the underlying hid device when the device node is closed last time.

I am proposing following patch as fix.  Please review it.  Mika will help in testing.

----------------------------------------