[lkml]   [2013]   [Oct]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: FW: [PATCH] hidraw: close underlying device at removal of last reader
On Tue, 1 Oct 2013, Manoj Chourasia wrote:

> Hi Jiri,
> Mika Westerberg 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.
> ----------------------------------------
> >From b37519b65be0d51b90c5fc177c0dc0cd2f6358b1 Mon Sep 17 00:00:00 2001
> From: Manoj Chourasia <>
> Date: Tue, 1 Oct 2013 15:39:00 +0530
> Subject: [PATCH] HID: hidraw: close underlying device at removal of last reader
> Even though device exist bit is set the underlying
> HW device should be closed when the last reader
> of the device is closed i.e. open count drops to zero.
> Signed-off-by: Manoj Chourasia <>

Applied, thanks a lot to both of you.

Jiri Kosina
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2013-10-02 17:41    [W:0.056 / U:2.616 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site