Re: [PATCH] hidraw: correctly deallocate memory on devicedisconnect

From: Jiri Kosina
Date: Fri Aug 09 2013 - 05:31:27 EST

On Mon, 22 Jul 2013, Manoj Chourasia wrote:

> This is mail is in regard to your commit for hidaw devices. We were
> seeing kernel crashes while connect and disconnect a hidraw device and
> we were hitting rb tree corruption in vmalloc and kernel was crashing
> because of null pointer de-reference. Later we figure out that was
> because the hid device disconnect is freeing memory which later got
> access by hidraw_read and hid_write.

Now applied, thanks Manoj, thanks Peter.

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