hidclass.sys: Initialize ext->irp_queue immediately after HID_CreateDevice

Changhui LIU liuchanghui at linuxdeepin.com
Fri Dec 18 00:47:07 CST 2015


The driver  use hidclass.sys will crashe when  minidriver->AddDevice fails, 
because  this moment HID_DeleteDevice() calls RemoveHeadList(&ext->irp_queue) before irp_queue is initialized. 
This patch fix the crashing.




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




武汉深之度科技有限公司
Wuhan Deepin Technology Co., Ltd.

  刘昌辉

手机:1866 4588 256


武汉:武汉市光谷大道77号光谷金融港B18栋6楼 
北京:北京市海淀区知春路锦秋国际大厦B座501室
上海:上海市长宁区愚园路1258号15A01室


官网:www.deepin.org  官博:深度操作系统
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20151218/a7b16db7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-hidclass.sys-Initialize-ext-irp_queue-immediately-afte.txt
Type: application/octet-stream
Size: 1680 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20151218/a7b16db7/attachment.obj>


More information about the wine-patches mailing list