private_data, which means that private_data will not be NULL when wmi_char_open() is called. This might cause memory corruption should wmi_char_open() be unable to find its driver, something which can happen when the associated WMI device is deleted in wmi_free_devices(). Fix the problem by using the miscdevice pointer to retrieve the WMI device data associated with a char device using container_of(). This also avoids wmi_char_open() picking a wrong WMI device bound to a driver with the same name as the original driver. "> private_data,,which,means,that,private_data,will,not,be,NULL when,wmi_char_open(),is,called.,This,might,cause,memory,corruption should,wmi_char_open(),be,unable,to,find,its,driver,,something,which can,happen,when,the,associated,WMI,device,is,deleted,in wmi_free_devices().,Fix,the,problem,by,using,the,miscdevice,pointer,to retrieve,the,WMI,device,data,associated,with,a,char,device,using container_of().,This,also,avoids,wmi_char_open(),picking,a,wrong,WMI device,bound,to,a,driver,with,the,same,name,as,the,original,driver. ">
![]() |
Home ▼ Bookkeeping
Online ▼ Security
Audits ▼
Managed
DNS ▼
About
Order
FAQ
Acceptable Use Policy
Dynamic DNS Clients
Configure Domains Dyanmic DNS Update Password Network
Monitor ▼
Enterprise Package
Advanced Package
Standard Package
Free Trial
FAQ
Price/Feature Summary
Order/Renew
Examples
Configure/Status Alert Profiles | ||